File tree 3 files changed +28
-59
lines changed
3 files changed +28
-59
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
14
- lint-test :
15
- name : Lint for push
14
+ ansible-lint :
15
+ name : Ansible Lint
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
@@ -25,16 +25,35 @@ jobs:
25
25
python-version : ' 3.x'
26
26
27
27
- name : Install test dependencies.
28
- run : pip3 install yamllint ansible-lint ansible
28
+ run : pip3 install ansible-lint ansible
29
29
30
30
- name : Version check
31
31
run : |
32
32
ansible --version
33
33
ansible-lint --version
34
+
35
+ - name : Run ansible-lint.
36
+ run : ansible-lint
37
+
38
+ yaml-lint :
39
+ name : YAML Lint
40
+ runs-on : ubuntu-latest
41
+
42
+ steps :
43
+ - name : Check out the codebase.
44
+ uses : actions/checkout@v3
45
+
46
+ - name : Set up Python.
47
+ uses : actions/setup-python@v4
48
+ with :
49
+ python-version : ' 3.x'
50
+
51
+ - name : Install test dependencies.
52
+ run : pip3 install yamllint
53
+
54
+ - name : Version check
55
+ run : |
34
56
yamllint --version
35
57
36
58
- name : Run yamllint.
37
- run : yamllint .
38
-
39
- - name : Run ansible-lint.
40
- run : ansible-lint
59
+ run : yamllint .
Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
workflow_dispatch :
7
7
8
-
9
-
10
8
jobs :
11
-
12
9
lint-test :
13
- name : Lint for PR
14
10
runs-on : ubuntu-latest
15
-
16
11
steps :
17
- - name : Check out the codebase.
18
- uses : actions/checkout@v3
19
-
20
- - name : Set up Python.
21
- uses : actions/setup-python@v4
22
- with :
23
- python-version : ' 3.x'
24
-
25
- - name : Install test dependencies.
26
- run : pip3 install yamllint ansible-lint ansible
27
-
28
- - name : Version check
29
- run : |
30
- ansible --version
31
- ansible-lint --version
32
- yamllint --version
33
-
34
- - name : Run yamllint.
35
- run : yamllint .
36
-
37
- - name : Run ansible-lint.
38
- run : ansible-lint
12
+ - uses : rancherfederal/rke2-ansible/.github/workflows/lint.yaml
39
13
40
14
rocky8-test :
41
15
name : Ansible build test for Rocky 8
Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
jobs :
9
-
10
9
lint-test :
11
- name : Lint for PR
12
10
runs-on : ubuntu-latest
13
-
14
11
steps :
15
- - name : Check out the codebase.
16
- uses : actions/checkout@v3
17
-
18
- - name : Set up Python.
19
- uses : actions/setup-python@v4
20
- with :
21
- python-version : ' 3.x'
22
-
23
- - name : Install test dependencies.
24
- run : pip3 install yamllint ansible-lint ansible
25
-
26
- - name : Version check
27
- run : |
28
- ansible --version
29
- ansible-lint --version
30
- yamllint --version
31
-
32
- - name : Run yamllint.
33
- run : yamllint .
34
-
35
- - name : Run ansible-lint.
36
- run : ansible-lint
12
+ - uses : rancherfederal/rke2-ansible/.github/workflows/lint.yaml
37
13
38
14
ubuntu20-test :
39
15
name : Ansible build test for Ubuntu
You can’t perform that action at this time.
0 commit comments