Update CodeQL versions tested in generated checks
This commit is contained in:
parent
fc983c82c2
commit
619f0d628b
53 changed files with 76 additions and 346 deletions
|
|
@ -1,10 +1,10 @@
|
|||
name: "Resolve environment"
|
||||
description: "Tests that the resolve-environment action works for Go and JavaScript/TypeScript"
|
||||
versions: ["stable-v2.13.5", "default", "linked", "nightly-latest"]
|
||||
versions: ["default", "linked", "nightly-latest"]
|
||||
steps:
|
||||
- uses: ./../action/init
|
||||
with:
|
||||
languages: ${{ matrix.version == 'stable-v2.13.5' && 'go' || 'go,javascript-typescript' }}
|
||||
languages: go,javascript-typescript
|
||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||
|
||||
- name: Resolve environment for Go
|
||||
|
|
@ -18,12 +18,11 @@ steps:
|
|||
run: exit 1
|
||||
|
||||
- name: Resolve environment for JavaScript/TypeScript
|
||||
if: matrix.version != 'stable-v2.13.5'
|
||||
uses: ./../action/resolve-environment
|
||||
id: resolve-environment-js
|
||||
with:
|
||||
language: javascript-typescript
|
||||
|
||||
- name: Fail if JavaScript/TypeScript configuration present
|
||||
if: matrix.version != 'stable-v2.13.5' && fromJSON(steps.resolve-environment-js.outputs.environment).configuration.javascript
|
||||
if: fromJSON(steps.resolve-environment-js.outputs.environment).configuration.javascript
|
||||
run: exit 1
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import textwrap
|
|||
# The default set of CodeQL Bundle versions to use for the PR checks.
|
||||
defaultTestVersions = [
|
||||
# The oldest supported CodeQL version. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts`
|
||||
"stable-v2.13.5",
|
||||
# The last CodeQL release in the 2.14 series.
|
||||
"stable-v2.14.6",
|
||||
# The last CodeQL release in the 2.15 series.
|
||||
"stable-v2.15.5",
|
||||
|
|
@ -17,6 +15,8 @@ defaultTestVersions = [
|
|||
"stable-v2.16.6",
|
||||
# The last CodeQL release in the 2.17 series.
|
||||
"stable-v2.17.6",
|
||||
# The last CodeQL release in the 2.18 series.
|
||||
"stable-v2.18.4",
|
||||
# The default version of CodeQL for Dotcom, as determined by feature flags.
|
||||
"default",
|
||||
# The version of CodeQL shipped with the Action in `defaults.json`. During the release process
|
||||
|
|
@ -81,7 +81,7 @@ for file in (this_dir / 'checks').glob('*.yml'):
|
|||
|
||||
# Prior to CLI v2.15.1, ARM runners were not supported by the build tracer.
|
||||
# "macos-latest" is now an ARM runner, so we run tests on the old CLIs on Intel runners instead.
|
||||
if version in ["stable-v2.13.5", "stable-v2.14.6"] and runnerImage == "macos-latest":
|
||||
if version in ["stable-v2.14.6"] and runnerImage == "macos-latest":
|
||||
matrix.append({
|
||||
'os': "macos-12",
|
||||
'version': version
|
||||
|
|
@ -100,13 +100,7 @@ for file in (this_dir / 'checks').glob('*.yml'):
|
|||
{
|
||||
'name': 'Setup Python on MacOS',
|
||||
'uses': 'actions/setup-python@v5',
|
||||
# Ensure that this is serialized as a folded (`>`) string to preserve the readability
|
||||
# of the generated workflow.
|
||||
'if': FoldedScalarString(textwrap.dedent('''
|
||||
runner.os == 'macOS' && (
|
||||
matrix.version == 'stable-v2.13.5' ||
|
||||
matrix.version == 'stable-v2.14.6')
|
||||
''').strip()),
|
||||
'if': "runner.os == 'macOS' && matrix.version == 'stable-v2.14.6'",
|
||||
'with': {
|
||||
'python-version': '3.11'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue