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 :
@@ -10,54 +10,18 @@ on: # yamllint disable-line rule:truthy
1010
1111jobs :
1212 quality :
13- name : Quality checks
14- runs-on : ['ubuntu-latest']
13+ name : ' Lint Code Base'
1514 if : ${{ github.event.commits[0].author.name != 'dependabot[bot]' }}
1615
17- steps :
18- - uses : actions/checkout@v5
19- with :
20- token : ${{ secrets.ASSETS_COMMIT_TOKEN }}
21- ref : ${{ github.head_ref || github.ref_name }}
22- # Full git history is needed to get a proper list of changed files within `super-linter`
23- fetch-depth : 0
24-
25- - name : Fetch changes
26- # Without fetching, we might miss new tags due to caching in Github Actions
27- run : git fetch --all
28-
29- - name : Remove generated files
30- # Remove generated files; we can't lint them and we want to detect removed files during build
31- run : find css/ js/ -type f -not -name '.gitkeep' -delete
32-
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)/.*'
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
51-
52- - name : Zip artifact for deployment
53- run : |
54- zip release.zip -r .
16+ strategy :
17+ fail-fast : false
5518
56- - uses : actions/upload-artifact@v4
57- with :
58- name : release
59- path : release.zip
60- retention-days : 1
19+ uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.0
20+ with :
21+ enable_eslinter : true
22+ enable_jsonlinter : true
23+ enable_stylelinter : true
24+ enable_yamllinter : true
6125
6226 build :
6327 name : Build assets
7034 steps :
7135 - uses : actions/setup-node@v4
7236 with :
73- node-version : 18
37+ node-version : 20
7438
7539 - uses : actions/download-artifact@v5
7640 with :
0 commit comments