Skip to content

Commit 67843b4

Browse files
committed
PR checks: Replace inline arrays
Lists are easier to modify
1 parent 92fdfc9 commit 67843b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+185
-66
lines changed

pr-checks/checks/all-platform-bundle.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: "All-platform bundle"
22
description: "Tests using an all-platform CodeQL Bundle"
3-
operatingSystems: ["ubuntu", "macos", "windows"]
4-
versions: ["nightly-latest"]
3+
operatingSystems:
4+
- ubuntu
5+
- macos
6+
- windows
7+
versions:
8+
- nightly-latest
59
useAllPlatformBundle: "true"
610
installGo: true
711
installDotNet: true

pr-checks/checks/analysis-kinds.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: "Analysis kinds"
22
description: "Tests basic functionality for different `analysis-kinds` inputs."
3-
versions: ["linked", "nightly-latest"]
4-
analysisKinds: ["code-scanning", "code-quality", "code-scanning,code-quality", "risk-assessment"]
3+
versions:
4+
- linked
5+
- nightly-latest
6+
analysisKinds:
7+
- code-scanning
8+
- code-quality
9+
- code-scanning,code-quality
10+
- risk-assessment
511
env:
612
CODEQL_ACTION_RISK_ASSESSMENT_ID: 1
713
CHECK_SCRIPT: |

pr-checks/checks/analyze-ref-input.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Analyze: 'ref' and 'sha' from inputs"
22
description: "Checks that specifying 'ref' and 'sha' as inputs works"
3-
versions: ["default"]
3+
versions:
4+
- default
45
installGo: true
56
installDotNet: true
67
steps:

pr-checks/checks/autobuild-action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: "autobuild-action"
22
description: "Tests that the C# autobuild action works"
3-
operatingSystems: ["ubuntu", "macos", "windows"]
4-
versions: ["linked"]
3+
operatingSystems:
4+
- ubuntu
5+
- macos
6+
- windows
7+
versions:
8+
- linked
59
installDotNet: true
610
steps:
711
- uses: ./../action/init

pr-checks/checks/autobuild-direct-tracing-with-working-dir.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ description: >
33
An end-to-end integration test of a Java repository built using 'build-mode: autobuild',
44
with direct tracing enabled and a custom working directory specified as the input to the
55
autobuild Action.
6-
operatingSystems: ["ubuntu", "windows"]
7-
versions: ["linked", "nightly-latest"]
6+
operatingSystems:
7+
- ubuntu
8+
- windows
9+
versions:
10+
- linked
11+
- nightly-latest
812
installJava: true
913
env:
1014
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true

pr-checks/checks/autobuild-working-dir.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Autobuild working directory"
22
description: "Tests working-directory input of autobuild action"
3-
versions: ["linked"]
3+
versions:
4+
- linked
45
steps:
56
- name: Test setup
67
run: |

pr-checks/checks/build-mode-autobuild.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: "Build mode autobuild"
22
description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild'"
3-
operatingSystems: ["ubuntu", "windows"]
4-
versions: ["linked", "nightly-latest"]
3+
operatingSystems:
4+
- ubuntu
5+
- windows
6+
versions:
7+
- linked
8+
- nightly-latest
59
installJava: true
610
installYq: true
711
steps:

pr-checks/checks/build-mode-manual.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Build mode manual"
22
description: "An end-to-end integration test of a Java repository built using 'build-mode: manual'"
3-
versions: ["nightly-latest"]
3+
versions:
4+
- nightly-latest
45
installGo: true
56
installDotNet: true
67
steps:

pr-checks/checks/build-mode-none.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: "Build mode none"
22
description: "An end-to-end integration test of a Java repository built using 'build-mode: none'"
3-
versions: ["linked", "nightly-latest"]
3+
versions:
4+
- linked
5+
- nightly-latest
46
steps:
57
- uses: ./../action/init
68
id: init

pr-checks/checks/build-mode-rollback.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Build mode rollback"
22
description: "The build mode is rolled back from none to autobuild when the relevant feature flag is enabled."
3-
versions: ["nightly-latest"]
3+
versions:
4+
- nightly-latest
45
env:
56
CODEQL_ACTION_DISABLE_JAVA_BUILDLESS: true
67
steps:

0 commit comments

Comments
 (0)