Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Lint
"on":
pull_request:
branches:
- main
schedule:
# Run on the 10th of each month at noon.
- cron: "00 12 10 * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: lint
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
ansible: ["2.16", "latest"]
steps:
- name: Check out the codebase
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: .requirements/${{ matrix.ansible }}.txt
- name: Install/upgrade pip, wheel
run: pip install --upgrade pip wheel
- name: Install test dependencies
run: pip install -r .requirements/${{ matrix.ansible }}.txt
- name: Run ansible-lint
run: ansible-lint