File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ # This workflow is centrally managed in https://github.com/<organization>/.github/
3+ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+ # the above-mentioned repo.
5+
6+ # Validate Dependabot config files.
7+
8+ name : validate dependabot config
9+ permissions : {}
10+
11+ on :
12+ pull_request :
13+
14+ concurrency :
15+ group : " ${{ github.workflow }}-${{ github.ref }}"
16+ cancel-in-progress : true
17+
18+ jobs :
19+ validate-dependabot :
20+ permissions :
21+ contents : read
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
27+ - name : Setup Node
28+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
29+ with :
30+ node-version : latest
31+
32+ - name : Install dependencies
33+ run : npm install --ignore-scripts
34+
35+ - name : Validate dependabot config
36+ run : npm run validate-dependabot
Original file line number Diff line number Diff line change 55
66# Validate Renovate config files.
77
8- name : renovate config validator
8+ name : validate renovate config
99permissions : {}
1010
1111on :
@@ -16,7 +16,7 @@ concurrency:
1616 cancel-in-progress : true
1717
1818jobs :
19- renovate-config-validator :
19+ validate-renovate :
2020 permissions :
2121 contents : read
2222 runs-on : ubuntu-latest
3434 # shellcheck disable=SC2086 # do not quote to keep this as a single line
3535 echo found=${files} >> "${GITHUB_OUTPUT}"
3636
37+ - name : Setup Node
38+ if : steps.find-files.outputs.found != ''
39+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
40+ with :
41+ node-version : latest
42+
3743 - name : Install npm dependencies
3844 if : steps.find-files.outputs.found != ''
39- run : npm install --ignore-scripts --global renovate
45+ run : npm install --ignore-scripts
4046
4147 - name : renovate config validator
4248 if : steps.find-files.outputs.found != ''
4753
4854 for FILE in ${{ steps.find-files.outputs.found }}; do
4955 file_status=0
50- renovate-config-validator --strict ${FILE} || file_status=$?
56+ npm run validate-renovate -- ${FILE} || file_status=$?
5157
5258 # set github step summary
5359 if [ $file_status -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -158,3 +158,7 @@ cython_debug/
158158# and can be added to the global gitignore or merged into this file. For a more nuclear
159159# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160.idea /
161+
162+ # Node
163+ node_modules /
164+ package-lock.json
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " lizardbyte-github" ,
3+ "version" : " 0.0.0" ,
4+ "description" : " LizardByte .github repository" ,
5+ "scripts" : {
6+ "validate-dependabot" : " validate-dependabot-yaml" ,
7+ "validate-renovate" : " renovate-config-validator --strict"
8+ },
9+ "devDependencies" : {
10+ "@bugron/validate-dependabot-yaml" : " 0.3.3" ,
11+ "renovate" : " 43.96.0"
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments