1- name : " PR checks"
1+ name : PR checks
22
33env :
44 GO111MODULE : auto
1414
1515jobs :
1616 lint-js :
17+ name : Lint
1718 runs-on : ubuntu-latest
1819
1920 steps :
@@ -26,10 +27,11 @@ jobs:
2627
2728 steps :
2829 - uses : actions/checkout@v2
29- - name : Check generated JavaScript
30+ - name : Check generated JS
3031 run : .github/workflows/script/check-js.sh
3132
3233 check-node-modules :
34+ name : Check modules up to date
3335 runs-on : macos-latest
3436
3537 steps :
3840 run : .github/workflows/script/check-node-modules.sh
3941
4042 npm-test :
43+ name : Unit Test
4144 needs : [check-js, check-node-modules]
4245 strategy :
4346 matrix :
5053 run : npm run-script test
5154
5255 multi-language-repo_test-autodetect-languages :
56+ name : Autodetect language (multi)
5357 needs : [check-js, check-node-modules]
5458 runs-on : ubuntu-latest
5559
@@ -107,6 +111,7 @@ jobs:
107111 # Packaging test that runs against a javascript database
108112 # Specifying packs in the config file.
109113 test-packaging-javascript-config :
114+ name : Packaging Config JS
110115 needs : [check-js, check-node-modules]
111116 runs-on : ubuntu-latest
112117
@@ -123,6 +128,8 @@ jobs:
123128 with :
124129 config-file : " .github/codeql/codeql-config-packaging.yml"
125130 languages : javascript
131+ # This version is known to worl with 0.1.0
132+ tools : https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20210831-manual/codeql-bundle.tar.gz
126133 - name : Build code
127134 shell : bash
128135 run : ./build.sh
@@ -148,6 +155,7 @@ jobs:
148155 # Packaging test that runs against a javascript database
149156 # Specifying packs as an input.
150157 test-packaging-javascript-inputs :
158+ name : Packaging Inputs JS
151159 needs : [check-js, check-node-modules]
152160 runs-on : ubuntu-latest
153161
@@ -164,7 +172,9 @@ jobs:
164172 with :
165173 config-file : " .github/codeql/codeql-config-packaging2.yml"
166174 languages : javascript
167- packs :
dsp-testing/[email protected] , dsp-testing/codeql-pack2 175+ packs :
dsp-testing/[email protected] , dsp-testing/codeql-pack2 176+ # This version is known to worl with 0.1.0
177+ tools : https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20210831-manual/codeql-bundle.tar.gz
168178
169179 - name : Build code
170180 shell : bash
@@ -191,6 +201,7 @@ jobs:
191201 # Packaging test that runs against a javascript database
192202 # Specifying packs in the config file and inputs.
193203 test-packaging-javascript-config-and-inputs :
204+ name : Packaging Inputs and Config JS
194205 needs : [check-js, check-node-modules]
195206 runs-on : ubuntu-latest
196207
@@ -206,8 +217,10 @@ jobs:
206217 - uses : ./../action/init
207218 with :
208219 config-file : " .github/codeql/codeql-config-packaging3.yml"
209- packs : +dsp-testing/codeql-pack1@0.0.4
220+ packs : +dsp-testing/codeql-pack1@0.1.0
210221 languages : javascript
222+ # This version is known to worl with 0.1.0
223+ tools : https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20210831-manual/codeql-bundle.tar.gz
211224
212225 - name : Build code
213226 shell : bash
@@ -233,6 +246,7 @@ jobs:
233246
234247 # Tests a split workflow where database construction and query execution happen in different steps
235248 test-split-workflow :
249+ name : Split workflow
236250 needs : [check-js, check-node-modules]
237251 runs-on : ubuntu-latest
238252
@@ -248,9 +262,10 @@ jobs:
248262 - uses : ./../action/init
249263 with :
250264 config-file : " .github/codeql/codeql-config-packaging3.yml"
251- packs : +dsp-testing/codeql-pack1@0.0.4
265+ packs : +dsp-testing/codeql-pack1@0.1.0
252266 languages : javascript
253- tools : latest
267+ # This version is known to worl with 0.1.0
268+ tools : https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20210831-manual/codeql-bundle.tar.gz
254269 - name : Build code
255270 shell : bash
256271 run : ./build.sh
@@ -287,12 +302,16 @@ jobs:
287302
288303 # Identify the CodeQL tool versions to integration test against.
289304 check-codeql-versions :
305+ name : Check CodeQL Versions
290306 needs : [check-js, check-node-modules]
291307 runs-on : ubuntu-latest
292308 outputs :
293309 versions : ${{ steps.compare.outputs.versions }}
294310 nightly-url : ${{ steps.get-url.outputs.nightly-url }}
295-
311+ env :
312+ # URL of the oldest release that we support, if this is being bumped then the constant
313+ # CODEQL_MINIMUM_VERSION in the file codeql.ts should also be bumped to match this.
314+ OLDEST_URL : https://github.com/github/codeql-action/releases/download/codeql-bundle-20201028/codeql-bundle.tar.gz
296315 steps :
297316 - uses : actions/checkout@v2
298317 - name : Move codeql-action
@@ -336,38 +355,52 @@ jobs:
336355 with :
337356 tools : ${{ steps.get-url.outputs.nightly-url }}
338357 languages : javascript
358+ - name : Remove empty database
359+ # allows us to run init a fourth time
360+ run : |
361+ rm -rf "$RUNNER_TEMP/codeql_databases"
362+ - name : Init with a CodeQL bundle from the oldest supported release
363+ id : init-oldest
364+ uses : ./../action/init
365+ with :
366+ tools : ${{ env.OLDEST_URL }}
367+ languages : javascript
339368 - name : Compare CodeQL bundle versions
340369 id : compare
341370 env :
342371 CODEQL_DEFAULT : ${{ steps.init-default.outputs.codeql-path }}
343372 CODEQL_LATEST : ${{ steps.init-latest.outputs.codeql-path }}
344373 CODEQL_NIGHTLY : ${{ steps.init-nightly.outputs.codeql-path }}
374+ CODEQL_OLDEST : ${{ steps.init-oldest.outputs.codeql-path }}
345375 NIGHTLY_URL : ${{ steps.get-url.outputs.nightly-url }}
346376 run : |
347377 CODEQL_VERSION_DEFAULT="$("$CODEQL_DEFAULT" version --format terse)"
348378 CODEQL_VERSION_LATEST="$("$CODEQL_LATEST" version --format terse)"
349379 CODEQL_VERSION_NIGHTLY="$("$CODEQL_NIGHTLY" version --format terse)"
380+ CODEQL_VERSION_OLDEST="$("$CODEQL_OLDEST" version --format terse)"
350381 echo "Default CodeQL bundle version is $CODEQL_VERSION_DEFAULT"
351382 echo "Latest CodeQL bundle version is $CODEQL_VERSION_LATEST"
352383 echo "Nightly CodeQL bundle version is $CODEQL_VERSION_NIGHTLY"
384+ echo "Oldest supported CodeQL bundle version is $CODEQL_VERSION_OLDEST"
353385
354- # If we're running on a pull request, run each integration test with all three bundles, even
386+ # If we're running on a pull request, run each integration test with all four bundles, even
355387 # if `tools: latest` would be the same as `tools: null`. This allows us to make the
356- # integration test job for each of the three bundles a required status check.
388+ # integration test job for each of the four bundles a required status check.
357389 #
358390 # If we're running on push, then we can skip running with `tools: latest` when it would be
359391 # the same as running with `tools: null`.
360392 if [[ "$GITHUB_EVENT_NAME" != "pull_request" && "$CODEQL_VERSION_DEFAULT" == "$CODEQL_VERSION_LATEST" ]]; then
361- VERSIONS_JSON="[null, \"$NIGHTLY_URL\"]"
393+ VERSIONS_JSON="[null, \"$NIGHTLY_URL\", \"$OLDEST_URL\" ]"
362394 else
363- VERSIONS_JSON="[null, \"$NIGHTLY_URL\", \"latest\"]"
395+ VERSIONS_JSON="[null, \"$NIGHTLY_URL\", \"$OLDEST_URL\", \" latest\"]"
364396 fi
365397
366398 # Output a JSON-encoded list with the distinct versions to test against.
367399 echo "Suggested matrix config for integration tests: $VERSIONS_JSON"
368400 echo "::set-output name=versions::${VERSIONS_JSON}"
369401
370402 multi-language-repo_test-custom-queries-and-remote-config :
403+ name : Remote Config Custom Queries multi-language repo
371404 needs : [check-js, check-node-modules, check-codeql-versions]
372405 strategy :
373406 fail-fast : false
@@ -399,6 +432,7 @@ jobs:
399432
400433 # Currently is not possible to analyze Go in conjunction with other languages in macos
401434 multi-language-repo_test-go-custom-queries :
435+ name : Go custom queries multi-language repo
402436 needs : [check-js, check-node-modules, check-codeql-versions]
403437 strategy :
404438 fail-fast : false
@@ -433,6 +467,7 @@ jobs:
433467 TEST_MODE : true
434468
435469 go-custom-tracing :
470+ name : Go custom tracing
436471 needs : [check-js, check-node-modules, check-codeql-versions]
437472 strategy :
438473 fail-fast : false
@@ -468,6 +503,7 @@ jobs:
468503 TEST_MODE : true
469504
470505 go-custom-tracing-autobuild :
506+ name : Go autobuild custom tracing
471507 needs : [check-js, check-node-modules, check-codeql-versions]
472508 strategy :
473509 fail-fast : false
@@ -505,6 +541,7 @@ jobs:
505541
506542 # Ruby is in beta, so test it separately for now.
507543 multi-language-repo_test-ruby :
544+ name : Ruby multi-language
508545 needs : [check-js, check-node-modules, check-codeql-versions]
509546 strategy :
510547 fail-fast : false
@@ -545,6 +582,7 @@ jobs:
545582 fi
546583
547584 multi-language-repo_rubocop :
585+ name : Rubocop multi-language
548586 needs : [check-js, check-node-modules]
549587 runs-on : ubuntu-latest
550588
@@ -578,6 +616,7 @@ jobs:
578616 TEST_MODE : true
579617
580618 test-proxy :
619+ name : Proxy
581620 needs : [check-js, check-node-modules, check-codeql-versions]
582621 strategy :
583622 fail-fast : false
@@ -612,6 +651,7 @@ jobs:
612651 TEST_MODE : true
613652
614653 runner-analyze-javascript-ubuntu :
654+ name : Runner ubuntu JS analyze
615655 needs : [check-js, check-node-modules]
616656 runs-on : ubuntu-latest
617657
@@ -639,6 +679,7 @@ jobs:
639679 TEST_MODE : true
640680
641681 runner-analyze-javascript-windows :
682+ name : Runner windows JS analyze
642683 needs : [check-js, check-node-modules]
643684 runs-on : windows-latest
644685
@@ -662,6 +703,7 @@ jobs:
662703 TEST_MODE : true
663704
664705 runner-analyze-javascript-macos :
706+ name : Runner macos JS analyze
665707 needs : [check-js, check-node-modules]
666708 runs-on : macos-latest
667709
@@ -685,6 +727,7 @@ jobs:
685727 TEST_MODE : true
686728
687729 runner-analyze-csharp-ubuntu :
730+ name : Runner ubuntu C# analyze
688731 needs : [check-js, check-node-modules]
689732 runs-on : ubuntu-latest
690733
@@ -721,6 +764,7 @@ jobs:
721764 TEST_MODE : true
722765
723766 runner-analyze-csharp-windows :
767+ name : Runner windows C# analyze
724768 needs : [check-js, check-node-modules]
725769 runs-on : windows-latest
726770
@@ -760,6 +804,7 @@ jobs:
760804 TEST_MODE : true
761805
762806 runner-analyze-csharp-macos :
807+ name : Runner macos C# analyze
763808 needs : [check-js, check-node-modules]
764809 runs-on : macos-latest
765810
@@ -798,6 +843,7 @@ jobs:
798843
799844
800845 runner-analyze-csharp-autobuild-ubuntu :
846+ name : Runner ubuntu autobuild C# analyze
801847 needs : [check-js, check-node-modules]
802848 runs-on : ubuntu-latest
803849
@@ -833,6 +879,7 @@ jobs:
833879 TEST_MODE : true
834880
835881 runner-analyze-csharp-autobuild-windows :
882+ name : Runner windows autobuild C# analyze
836883 needs : [check-js, check-node-modules]
837884 runs-on : windows-latest
838885
@@ -869,6 +916,7 @@ jobs:
869916 TEST_MODE : true
870917
871918 runner-analyze-csharp-autobuild-macos :
919+ name : Runner macos autobuild C# analyze
872920 needs : [check-js, check-node-modules]
873921 runs-on : macos-latest
874922
@@ -905,6 +953,7 @@ jobs:
905953 TEST_MODE : true
906954
907955 runner-upload-sarif :
956+ name : Runner upload sarif
908957 needs : [check-js, check-node-modules]
909958 runs-on : ubuntu-latest
910959
@@ -926,6 +975,7 @@ jobs:
926975 runner/dist/codeql-runner-linux upload --sarif-file src/testdata/empty-sarif.sarif --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
927976
928977 multi-language-repo_test-local-codeql :
978+ name : Local codeql multi-language repo
929979 needs : [check-js, check-node-modules, check-codeql-versions]
930980 runs-on : ubuntu-latest
931981
@@ -946,6 +996,7 @@ jobs:
946996 - uses : ./../action/analyze
947997
948998 test-javascript-source-root :
999+ name : JS source root
9491000 needs : [check-js, check-node-modules]
9501001 runs-on : ubuntu-latest
9511002
0 commit comments