11---
2- name : Build assets for SimpleSAMLphp 2.4
2+ name : Build assets for SimpleSAMLphp 2.5
33
44on : # yamllint disable-line rule:truthy
55 push :
@@ -9,13 +9,16 @@ on: # yamllint disable-line rule:truthy
99 workflow_dispatch :
1010
1111jobs :
12- quality :
13- name : Quality checks
12+ pre- quality-cleanup :
13+ name : ' Cleanup Code Base '
1414 runs-on : ['ubuntu-latest']
1515 if : ${{ github.event.commits[0].author.name != 'dependabot[bot]' }}
1616
17+ strategy :
18+ fail-fast : false
19+
1720 steps :
18- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v5
1922 with :
2023 token : ${{ secrets.ASSETS_COMMIT_TOKEN }}
2124 ref : ${{ github.head_ref || github.ref_name }}
@@ -30,25 +33,27 @@ jobs:
3033 # Remove generated files; we can't lint them and we want to detect removed files during build
3134 run : find css/ webfonts/ icons/ js/ -type f -not -name '.gitkeep' -delete
3235
33- - name : Lint Code Base
34- uses : super-linter/super-linter/slim@v8
35- env :
36- DEFAULT_BRANCH : ${{ github.head_ref || github.ref_name }}
37- # CSS Linter will choke on generated assets
38- IGNORE_GENERATED_FILES : true
39- FILTER_REGEX_EXCLUDE : ' (css|js|webfonts|icons)/.*'
40- # To report GitHub Actions status checks
41- SAVE_SUPER_LINTER_OUTPUT : false
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43- LINTER_RULES_PATH : ' tools/linters'
44- VALIDATE_ALL_CODEBASE : true
45- VALIDATE_CSS : true
46- VALIDATE_JAVASCRIPT_ES : true
47- VALIDATE_JSON : true
48- VALIDATE_MARKDOWN : true
49- VALIDATE_YAML : true
50- VALIDATE_GITHUB_ACTIONS : true
36+ quality :
37+ name : ' Lint Code Base'
38+ strategy :
39+ fail-fast : false
40+
41+ uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.0
42+ with :
43+ enable_eslinter : true
44+ enable_jsonlinter : true
45+ enable_stylelinter : false
46+ enable_yamllinter : true
47+
48+ post-quality-wrapup :
49+ name : ' Save cleaned and quality-checked Code Base'
50+ runs-on : ['ubuntu-latest']
51+ needs : quality
52+
53+ strategy :
54+ fail-fast : false
5155
56+ steps :
5257 - name : Zip artifact for deployment
5358 run : |
5459 zip release.zip -r .
6267 build :
6368 name : Build assets
6469 runs-on : ['ubuntu-latest']
65- needs : quality
70+ needs : post- quality-wrapup
6671
6772 outputs :
6873 files_changed : ${{ steps.changes.outputs.files_changed }}
0 commit comments