mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Organise language-specific setup information
This commit is contained in:
30
.github/workflows/__all-platform-bundle.yml
generated
vendored
30
.github/workflows/__all-platform-bundle.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: all-platform-bundle-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: all-platform-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
all-platform-bundle:
|
all-platform-bundle:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -82,15 +82,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'true'
|
use-all-platform-bundle: 'true'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- id: init
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|||||||
30
.github/workflows/__analyze-ref-input.yml
generated
vendored
30
.github/workflows/__analyze-ref-input.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: analyze-ref-input-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: analyze-ref-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
analyze-ref-input:
|
analyze-ref-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -88,6 +88,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -98,10 +102,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|||||||
30
.github/workflows/__build-mode-manual.yml
generated
vendored
30
.github/workflows/__build-mode-manual.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: build-mode-manual-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: build-mode-manual-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-manual:
|
build-mode-manual:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -78,15 +78,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|||||||
14
.github/workflows/__config-input.yml
generated
vendored
14
.github/workflows/__config-input.yml
generated
vendored
@@ -51,13 +51,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
cache: npm
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
id: prepare-test
|
id: prepare-test
|
||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
@@ -65,6 +58,13 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Copy queries into workspace
|
- name: Copy queries into workspace
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/queries .
|
cp -a ../action/queries .
|
||||||
|
|||||||
30
.github/workflows/__export-file-baseline-information.yml
generated
vendored
30
.github/workflows/__export-file-baseline-information.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: export-file-baseline-information-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: export-file-baseline-information-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
export-file-baseline-information:
|
export-file-baseline-information:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -82,15 +82,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|||||||
30
.github/workflows/__go-custom-queries.yml
generated
vendored
30
.github/workflows/__go-custom-queries.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: go-custom-queries-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: go-custom-queries-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
go-custom-queries:
|
go-custom-queries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -80,15 +80,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
|
|||||||
12
.github/workflows/__go.yml
generated
vendored
12
.github/workflows/__go.yml
generated
vendored
@@ -10,16 +10,16 @@ env:
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
jobs:
|
jobs:
|
||||||
go-custom-queries:
|
go-custom-queries:
|
||||||
name: 'Go: Custom queries'
|
name: 'Go: Custom queries'
|
||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
security-events: read
|
security-events: read
|
||||||
uses: ./.github/workflows/__go-custom-queries.yml
|
uses: ./.github/workflows/__go-custom-queries.yml
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version }}
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version }}
|
dotnet-version: ${{ inputs.dotnet-version }}
|
||||||
|
go-version: ${{ inputs.go-version }}
|
||||||
go-indirect-tracing-workaround-diagnostic:
|
go-indirect-tracing-workaround-diagnostic:
|
||||||
name: 'Go: diagnostic when Go is changed after init step'
|
name: 'Go: diagnostic when Go is changed after init step'
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
30
.github/workflows/__local-bundle.yml
generated
vendored
30
.github/workflows/__local-bundle.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: local-bundle-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: local-bundle-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
local-bundle:
|
local-bundle:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -88,6 +88,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -98,10 +102,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- name: Fetch latest CodeQL bundle
|
- name: Fetch latest CodeQL bundle
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst
|
wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst
|
||||||
|
|||||||
30
.github/workflows/__multi-language-autodetect.yml
generated
vendored
30
.github/workflows/__multi-language-autodetect.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: multi-language-autodetect-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: multi-language-autodetect-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
multi-language-autodetect:
|
multi-language-autodetect:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -122,6 +122,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -132,10 +136,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- name: Use Xcode 16
|
- name: Use Xcode 16
|
||||||
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
||||||
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
||||||
|
|||||||
44
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
44
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: packaging-codescanning-config-inputs-js-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: packaging-codescanning-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-codescanning-config-inputs-js:
|
packaging-codescanning-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -85,13 +85,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
cache: npm
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
id: prepare-test
|
id: prepare-test
|
||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
@@ -99,20 +92,27 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
if: matrix.version != 'nightly-latest'
|
if: matrix.version != 'nightly-latest'
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
||||||
|
|||||||
42
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
42
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: packaging-config-inputs-js-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: packaging-config-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-inputs-js:
|
packaging-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -75,13 +75,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
cache: npm
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
id: prepare-test
|
id: prepare-test
|
||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
@@ -89,15 +82,22 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
- name: Install Node.js
|
||||||
uses: actions/setup-dotnet@v5
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
||||||
|
|||||||
42
.github/workflows/__packaging-config-js.yml
generated
vendored
42
.github/workflows/__packaging-config-js.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: packaging-config-js-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: packaging-config-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-js:
|
packaging-config-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -75,13 +75,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
cache: npm
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
id: prepare-test
|
id: prepare-test
|
||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
@@ -89,15 +82,22 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
- name: Install Node.js
|
||||||
uses: actions/setup-dotnet@v5
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: '.github/codeql/codeql-config-packaging.yml'
|
config-file: '.github/codeql/codeql-config-packaging.yml'
|
||||||
|
|||||||
42
.github/workflows/__packaging-inputs-js.yml
generated
vendored
42
.github/workflows/__packaging-inputs-js.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: packaging-inputs-js-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: packaging-inputs-js-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-inputs-js:
|
packaging-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -75,13 +75,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
cache: npm
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
id: prepare-test
|
id: prepare-test
|
||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
@@ -89,15 +82,22 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
- name: Install Node.js
|
||||||
uses: actions/setup-dotnet@v5
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
node-version: 20.x
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: '.github/codeql/codeql-config-packaging2.yml'
|
config-file: '.github/codeql/codeql-config-packaging2.yml'
|
||||||
|
|||||||
30
.github/workflows/__remote-config.yml
generated
vendored
30
.github/workflows/__remote-config.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: remote-config-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: remote-config-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
remote-config:
|
remote-config:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -90,6 +90,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -100,10 +104,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|||||||
30
.github/workflows/__split-workflow.yml
generated
vendored
30
.github/workflows/__split-workflow.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: split-workflow-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: split-workflow-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
split-workflow:
|
split-workflow:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -88,15 +88,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
config-file: '.github/codeql/codeql-config-packaging3.yml'
|
||||||
|
|||||||
30
.github/workflows/__swift-custom-build.yml
generated
vendored
30
.github/workflows/__swift-custom-build.yml
generated
vendored
@@ -25,34 +25,34 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of .NET to install
|
description: The version of .NET to install
|
||||||
required: false
|
required: false
|
||||||
default: 9.x
|
default: 9.x
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: swift-custom-build-${{github.ref}}-${{inputs.go-version}}-${{inputs.dotnet-version}}
|
group: swift-custom-build-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
swift-custom-build:
|
swift-custom-build:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -82,15 +82,15 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- name: Use Xcode 16
|
- name: Use Xcode 16
|
||||||
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
||||||
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
||||||
|
|||||||
30
.github/workflows/__unset-environment.yml
generated
vendored
30
.github/workflows/__unset-environment.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: unset-environment-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: unset-environment-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
unset-environment:
|
unset-environment:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -90,6 +90,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -100,10 +104,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
|
|||||||
30
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
30
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: upload-ref-sha-input-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: upload-ref-sha-input-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
upload-ref-sha-input:
|
upload-ref-sha-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -88,6 +88,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -98,10 +102,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|||||||
30
.github/workflows/__upload-sarif.yml
generated
vendored
30
.github/workflows/__upload-sarif.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: upload-sarif-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: upload-sarif-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
upload-sarif:
|
upload-sarif:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -95,6 +95,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -105,10 +109,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|||||||
30
.github/workflows/__with-checkout-path.yml
generated
vendored
30
.github/workflows/__with-checkout-path.yml
generated
vendored
@@ -25,6 +25,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -35,13 +40,13 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -52,17 +57,12 @@ on:
|
|||||||
description: The version of Python to install
|
description: The version of Python to install
|
||||||
required: false
|
required: false
|
||||||
default: '3.13'
|
default: '3.13'
|
||||||
dotnet-version:
|
|
||||||
type: string
|
|
||||||
description: The version of .NET to install
|
|
||||||
required: false
|
|
||||||
default: 9.x
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: with-checkout-path-${{github.ref}}-${{inputs.go-version}}-${{inputs.python-version}}-${{inputs.dotnet-version}}
|
group: with-checkout-path-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}-${{inputs.python-version}}
|
||||||
jobs:
|
jobs:
|
||||||
with-checkout-path:
|
with-checkout-path:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -89,6 +89,10 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
@@ -99,10 +103,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.13' }}
|
python-version: ${{ inputs.python-version || '3.13' }}
|
||||||
- name: Install .NET
|
|
||||||
uses: actions/setup-dotnet@v5
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
||||||
- name: Delete original checkout
|
- name: Delete original checkout
|
||||||
run: |
|
run: |
|
||||||
# delete the original checkout so we don't accidentally use it.
|
# delete the original checkout so we don't accidentally use it.
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import * as path from "path";
|
|||||||
|
|
||||||
import * as yaml from "yaml";
|
import * as yaml from "yaml";
|
||||||
|
|
||||||
|
import { KnownLanguage } from "../src/languages";
|
||||||
|
|
||||||
/** Known workflow input names. */
|
/** Known workflow input names. */
|
||||||
enum KnownInputName {
|
enum KnownInputName {
|
||||||
GoVersion = "go-version",
|
GoVersion = "go-version",
|
||||||
@@ -70,6 +72,16 @@ interface JobSpecification {
|
|||||||
installYq?: boolean;
|
installYq?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Describes language/framework-specific steps and inputs. */
|
||||||
|
interface LanguageSetup {
|
||||||
|
specProperty: keyof JobSpecification;
|
||||||
|
inputs?: WorkflowInputs;
|
||||||
|
steps: any[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Describes partial mappings from known languages to their specific setup information. */
|
||||||
|
type LanguageSetups = Partial<Record<KnownLanguage, LanguageSetup>>;
|
||||||
|
|
||||||
// The default set of CodeQL Bundle versions to use for the PR checks.
|
// The default set of CodeQL Bundle versions to use for the PR checks.
|
||||||
const defaultTestVersions = [
|
const defaultTestVersions = [
|
||||||
// The oldest supported CodeQL version. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts`
|
// The oldest supported CodeQL version. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts`
|
||||||
@@ -94,6 +106,131 @@ const defaultTestVersions = [
|
|||||||
"nightly-latest",
|
"nightly-latest",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/** The default versions we use for languages / frameworks, if not specified as a workflow input. */
|
||||||
|
const defaultLanguageVersions = {
|
||||||
|
javascript: "20.x",
|
||||||
|
go: ">=1.21.0",
|
||||||
|
java: "17",
|
||||||
|
python: "3.13",
|
||||||
|
csharp: "9.x",
|
||||||
|
} as const satisfies Partial<Record<KnownLanguage, string>>;
|
||||||
|
|
||||||
|
/** A partial mapping from known languages to their specific setup information. */
|
||||||
|
const languageSetups: LanguageSetups = {
|
||||||
|
javascript: {
|
||||||
|
specProperty: "installNode",
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "Install Node.js",
|
||||||
|
uses: "actions/setup-node@v6",
|
||||||
|
with: {
|
||||||
|
"node-version": defaultLanguageVersions.javascript,
|
||||||
|
cache: "npm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Install dependencies",
|
||||||
|
run: "npm ci",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
go: {
|
||||||
|
specProperty: "installGo",
|
||||||
|
inputs: {
|
||||||
|
[KnownInputName.GoVersion]: {
|
||||||
|
type: "string",
|
||||||
|
description: "The version of Go to install",
|
||||||
|
required: false,
|
||||||
|
default: defaultLanguageVersions.go,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "Install Go",
|
||||||
|
uses: "actions/setup-go@v6",
|
||||||
|
with: {
|
||||||
|
"go-version":
|
||||||
|
"${{ inputs.go-version || '" + defaultLanguageVersions.go + "' }}",
|
||||||
|
// to avoid potentially misleading autobuilder results where we expect it to download
|
||||||
|
// dependencies successfully, but they actually come from a warm cache
|
||||||
|
cache: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
java: {
|
||||||
|
specProperty: "installJava",
|
||||||
|
inputs: {
|
||||||
|
[KnownInputName.JavaVersion]: {
|
||||||
|
type: "string",
|
||||||
|
description: "The version of Java to install",
|
||||||
|
required: false,
|
||||||
|
default: defaultLanguageVersions.java,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "Install Java",
|
||||||
|
uses: "actions/setup-java@v5",
|
||||||
|
with: {
|
||||||
|
"java-version":
|
||||||
|
"${{ inputs.java-version || '" +
|
||||||
|
defaultLanguageVersions.java +
|
||||||
|
"' }}",
|
||||||
|
distribution: "temurin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
python: {
|
||||||
|
specProperty: "installPython",
|
||||||
|
inputs: {
|
||||||
|
[KnownInputName.PythonVersion]: {
|
||||||
|
type: "string",
|
||||||
|
description: "The version of Python to install",
|
||||||
|
required: false,
|
||||||
|
default: defaultLanguageVersions.python,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "Install Python",
|
||||||
|
if: "matrix.version != 'nightly-latest'",
|
||||||
|
uses: "actions/setup-python@v6",
|
||||||
|
with: {
|
||||||
|
"python-version":
|
||||||
|
"${{ inputs.python-version || '" +
|
||||||
|
defaultLanguageVersions.python +
|
||||||
|
"' }}",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
csharp: {
|
||||||
|
specProperty: "installDotNet",
|
||||||
|
inputs: {
|
||||||
|
[KnownInputName.DotnetVersion]: {
|
||||||
|
type: "string",
|
||||||
|
description: "The version of .NET to install",
|
||||||
|
required: false,
|
||||||
|
default: defaultLanguageVersions.csharp,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "Install .NET",
|
||||||
|
uses: "actions/setup-dotnet@v5",
|
||||||
|
with: {
|
||||||
|
"dotnet-version":
|
||||||
|
"${{ inputs.dotnet-version || '" +
|
||||||
|
defaultLanguageVersions.csharp +
|
||||||
|
"' }}",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const THIS_DIR = __dirname;
|
const THIS_DIR = __dirname;
|
||||||
const CHECKS_DIR = path.join(THIS_DIR, "checks");
|
const CHECKS_DIR = path.join(THIS_DIR, "checks");
|
||||||
const OUTPUT_DIR = path.join(THIS_DIR, "..", ".github", "workflows");
|
const OUTPUT_DIR = path.join(THIS_DIR, "..", ".github", "workflows");
|
||||||
@@ -138,6 +275,36 @@ function stripTrailingWhitespace(content: string): string {
|
|||||||
.join("\n");
|
.join("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves setup steps and additional input definitions based on specific languages or frameworks
|
||||||
|
* that are requested by the `checkSpecification`.
|
||||||
|
*
|
||||||
|
* @returns An object containing setup steps and additional input specifications.
|
||||||
|
*/
|
||||||
|
function getSetupSteps(checkSpecification: Specification): {
|
||||||
|
inputs: WorkflowInputs;
|
||||||
|
steps: any[];
|
||||||
|
} {
|
||||||
|
let inputs: WorkflowInputs = {};
|
||||||
|
const steps = [];
|
||||||
|
|
||||||
|
for (const language of Object.values(KnownLanguage).sort()) {
|
||||||
|
const setupSpec = languageSetups[language];
|
||||||
|
|
||||||
|
if (
|
||||||
|
setupSpec === undefined ||
|
||||||
|
checkSpecification[setupSpec.specProperty] === undefined
|
||||||
|
) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
steps.push(...setupSpec.steps);
|
||||||
|
inputs = { ...inputs, ...setupSpec.inputs };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { inputs, steps };
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main entry point for the sync script.
|
* Main entry point for the sync script.
|
||||||
*/
|
*/
|
||||||
@@ -170,7 +337,6 @@ function main(): void {
|
|||||||
|
|
||||||
console.log(`Processing: ${checkName} — "${checkSpecification.name}"`);
|
console.log(`Processing: ${checkName} — "${checkSpecification.name}"`);
|
||||||
|
|
||||||
const workflowInputs: WorkflowInputs = {};
|
|
||||||
let matrix: Array<Record<string, any>> = [];
|
let matrix: Array<Record<string, any>> = [];
|
||||||
|
|
||||||
for (const version of checkSpecification.versions ?? defaultTestVersions) {
|
for (const version of checkSpecification.versions ?? defaultTestVersions) {
|
||||||
@@ -216,134 +382,30 @@ function main(): void {
|
|||||||
matrix = newMatrix;
|
matrix = newMatrix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determine which languages or frameworks have to be installed.
|
||||||
|
const setupInfo = getSetupSteps(checkSpecification);
|
||||||
|
const workflowInputs = setupInfo.inputs;
|
||||||
|
|
||||||
// Construct the workflow steps needed for this check.
|
// Construct the workflow steps needed for this check.
|
||||||
const steps: any[] = [
|
const steps: any[] = [
|
||||||
{
|
{
|
||||||
name: "Check out repository",
|
name: "Check out repository",
|
||||||
uses: "actions/checkout@v6",
|
uses: "actions/checkout@v6",
|
||||||
},
|
},
|
||||||
];
|
{
|
||||||
|
name: "Prepare test",
|
||||||
const installNode = checkSpecification.installNode;
|
id: "prepare-test",
|
||||||
|
uses: "./.github/actions/prepare-test",
|
||||||
if (installNode) {
|
with: {
|
||||||
steps.push(
|
version: "${{ matrix.version }}",
|
||||||
{
|
"use-all-platform-bundle": useAllPlatformBundle,
|
||||||
name: "Install Node.js",
|
// If the action is being run from a container, then do not setup kotlin.
|
||||||
uses: "actions/setup-node@v6",
|
// This is because the kotlin binaries cannot be downloaded from the container.
|
||||||
with: {
|
"setup-kotlin": "container" in checkSpecification ? "false" : "true",
|
||||||
"node-version": "20.x",
|
|
||||||
cache: "npm",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Install dependencies",
|
|
||||||
run: "npm ci",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
steps.push({
|
|
||||||
name: "Prepare test",
|
|
||||||
id: "prepare-test",
|
|
||||||
uses: "./.github/actions/prepare-test",
|
|
||||||
with: {
|
|
||||||
version: "${{ matrix.version }}",
|
|
||||||
"use-all-platform-bundle": useAllPlatformBundle,
|
|
||||||
// If the action is being run from a container, then do not setup kotlin.
|
|
||||||
// This is because the kotlin binaries cannot be downloaded from the container.
|
|
||||||
"setup-kotlin": "container" in checkSpecification ? "false" : "true",
|
|
||||||
},
|
},
|
||||||
});
|
...setupInfo.steps,
|
||||||
|
];
|
||||||
const installGo = checkSpecification.installGo;
|
|
||||||
|
|
||||||
if (installGo) {
|
|
||||||
const baseGoVersionExpr = ">=1.21.0";
|
|
||||||
workflowInputs[KnownInputName.GoVersion] = {
|
|
||||||
type: "string",
|
|
||||||
description: "The version of Go to install",
|
|
||||||
required: false,
|
|
||||||
default: baseGoVersionExpr,
|
|
||||||
};
|
|
||||||
|
|
||||||
steps.push({
|
|
||||||
name: "Install Go",
|
|
||||||
uses: "actions/setup-go@v6",
|
|
||||||
with: {
|
|
||||||
"go-version":
|
|
||||||
"${{ inputs.go-version || '" + baseGoVersionExpr + "' }}",
|
|
||||||
// to avoid potentially misleading autobuilder results where we expect it to download
|
|
||||||
// dependencies successfully, but they actually come from a warm cache
|
|
||||||
cache: false,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const installJava = checkSpecification.installJava;
|
|
||||||
|
|
||||||
if (installJava) {
|
|
||||||
const baseJavaVersionExpr = "17";
|
|
||||||
workflowInputs[KnownInputName.JavaVersion] = {
|
|
||||||
type: "string",
|
|
||||||
description: "The version of Java to install",
|
|
||||||
required: false,
|
|
||||||
default: baseJavaVersionExpr,
|
|
||||||
};
|
|
||||||
|
|
||||||
steps.push({
|
|
||||||
name: "Install Java",
|
|
||||||
uses: "actions/setup-java@v5",
|
|
||||||
with: {
|
|
||||||
"java-version":
|
|
||||||
"${{ inputs.java-version || '" + baseJavaVersionExpr + "' }}",
|
|
||||||
distribution: "temurin",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const installPython = checkSpecification.installPython;
|
|
||||||
|
|
||||||
if (installPython) {
|
|
||||||
const basePythonVersionExpr = "3.13";
|
|
||||||
workflowInputs[KnownInputName.PythonVersion] = {
|
|
||||||
type: "string",
|
|
||||||
description: "The version of Python to install",
|
|
||||||
required: false,
|
|
||||||
default: basePythonVersionExpr,
|
|
||||||
};
|
|
||||||
|
|
||||||
steps.push({
|
|
||||||
name: "Install Python",
|
|
||||||
if: "matrix.version != 'nightly-latest'",
|
|
||||||
uses: "actions/setup-python@v6",
|
|
||||||
with: {
|
|
||||||
"python-version":
|
|
||||||
"${{ inputs.python-version || '" + basePythonVersionExpr + "' }}",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const installDotNet = checkSpecification.installDotNet;
|
|
||||||
|
|
||||||
if (installDotNet) {
|
|
||||||
const baseDotNetVersionExpr = "9.x";
|
|
||||||
workflowInputs[KnownInputName.DotnetVersion] = {
|
|
||||||
type: "string",
|
|
||||||
description: "The version of .NET to install",
|
|
||||||
required: false,
|
|
||||||
default: baseDotNetVersionExpr,
|
|
||||||
};
|
|
||||||
|
|
||||||
steps.push({
|
|
||||||
name: "Install .NET",
|
|
||||||
uses: "actions/setup-dotnet@v5",
|
|
||||||
with: {
|
|
||||||
"dotnet-version":
|
|
||||||
"${{ inputs.dotnet-version || '" + baseDotNetVersionExpr + "' }}",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const installYq = checkSpecification.installYq;
|
const installYq = checkSpecification.installYq;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user