File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : molecule lint
2
2
3
3
on :
4
- push :
5
- branches :
6
- - develop
7
- - feature/*
8
- pull_request :
9
- branches :
10
- - develop
11
- types : [opened, synchronize, reopened]
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+
12
9
jobs :
13
10
lint :
14
- runs-on : ubuntu-18.04
15
- strategy :
16
- fail-fast : true
11
+ name : Lint
12
+ runs-on : ubuntu-latest
17
13
steps :
18
- - name : checkout
19
- uses : actions/checkout@v3
14
+ - name : Check out the codebase.
15
+ uses : actions/checkout@v2
20
16
with :
21
17
path : " ${{ github.repository }}"
22
- - name : Molecule for Ansible - lint
23
- uses :
MonolithProjects/[email protected]
18
+
19
+ - name : Set up Python 3.
20
+ uses : actions/setup-python@v2
24
21
with :
25
- molecule_command : lint
22
+ python-version : ' 3.x'
23
+
24
+ - name : Install test dependencies.
25
+ run : pip3 install ansible-lint yamllint
26
+
27
+ - name : Lint code.
28
+ run : |
29
+ ansible-lint --exclude molecule/ --exclude .github/
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: molecule test
3
3
on :
4
4
pull_request :
5
5
branches :
6
- - main
6
+ - master
7
7
types : [opened, synchronize, reopened]
8
8
paths :
9
9
- ' defaults/**'
You can’t perform that action at this time.
0 commit comments