File tree Expand file tree Collapse file tree 3 files changed +57
-10
lines changed
Expand file tree Collapse file tree 3 files changed +57
-10
lines changed Original file line number Diff line number Diff line change 11name : CI
2-
3- concurrency :
4- group : ${{ github.head_ref || github.run_id }}
5- cancel-in-progress : true
6-
72on :
83 pull_request :
94 branches :
149 - " step.version"
1510 workflow_dispatch :
1611
12+ concurrency :
13+ group : ${{ github.head_ref || github.run_id }}
14+ cancel-in-progress : true
15+
1716jobs :
17+ format :
18+ uses : trfore/ansible-role/.github/workflows/format.yml@main
19+
20+ lint :
21+ needs :
22+ - format
23+ uses : trfore/ansible-role/.github/workflows/lint_ansible.yml@main
24+
1825 sanity :
26+ needs :
27+ - format
28+ - lint
1929 uses : ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
30+
2031 test :
2132 needs :
33+ - format
34+ - lint
2235 - sanity
2336 strategy :
2437 fail-fast : false
@@ -33,15 +46,20 @@ jobs:
3346 molecule_glob : " ./extensions/molecule/*/molecule.yml"
3447 molecule_scenario : ${{ matrix.molecule_scenario }}
3548 requirements_file : " requirements/dev-requirements.txt"
49+
3650 check :
3751 if : ${{ always() && (github.event_name != 'schedule') }}
3852 needs :
53+ - format
54+ - lint
3955 - sanity
4056 - test
4157 runs-on : ubuntu-latest
4258 steps :
4359 - run : >-
4460 python -c "assert set([
61+ '${{ needs.format.result }}',
62+ '${{ needs.lint.result }}',
4563 '${{ needs.sanity.result }}',
4664 '${{ needs.test.result }}',
4765 ]) == {'success'}"
Original file line number Diff line number Diff line change 1+ name : Lint
2+ on :
3+ pull_request :
4+ branches : ["main"]
5+ paths :
6+ - " **.md"
7+ - " LICENSE"
8+ push :
9+ branches : ["*"]
10+ paths :
11+ - " **.md"
12+ - " LICENSE"
13+
14+ concurrency :
15+ group : ${{ github.workflow}}-${{ github.event.pull_request.number || github.ref }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ format :
20+ uses : trfore/ansible-role/.github/workflows/format.yml@main
21+
22+ check :
23+ needs :
24+ - format
25+ runs-on : ubuntu-latest
26+ steps :
27+ - run : >-
28+ python -c "assert set([
29+ '${{ needs.format.result }}',
30+ ]) == {'success'}"
Original file line number Diff line number Diff line change 11name : Release Check
2-
3- concurrency :
4- group : ${{ github.head_ref || github.run_id }}
5- cancel-in-progress : true
6-
72on :
83 pull_request :
94 paths :
105 - " step.version"
116
7+ concurrency :
8+ group : ${{ github.head_ref || github.run_id }}
9+ cancel-in-progress : true
10+
1211jobs :
1312 test :
1413 strategy :
You can’t perform that action at this time.
0 commit comments