mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Bumps the actions-minor group with 3 updates in the /.github/workflows directory: [actions/setup-dotnet](https://github.com/actions/setup-dotnet), [actions/setup-java](https://github.com/actions/setup-java) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `actions/setup-dotnet` from 5.3.0 to 5.4.0 - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](9a946fdbd5...26b0ec14cb) Updates `actions/setup-java` from 5.3.0 to 5.4.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](ad2b38190b...1bcf9fb12c) Updates `ruby/setup-ruby` from 1.313.0 to 1.314.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](89f90524b8...9eb537ca03) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-version: 5.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: actions/setup-java dependency-version: 5.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: ruby/setup-ruby dependency-version: 1.314.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor ... Signed-off-by: dependabot[bot] <support@github.com>
108 lines
3.1 KiB
YAML
Generated
108 lines
3.1 KiB
YAML
Generated
# Warning: This file is generated automatically, and should not be modified.
|
|
# Instead, please modify the template in the pr-checks directory and run:
|
|
# pr-checks/sync.sh
|
|
# to regenerate this file.
|
|
|
|
name: PR Check - Build mode manual
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GO111MODULE: auto
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- releases/v*
|
|
pull_request: {}
|
|
merge_group:
|
|
types:
|
|
- checks_requested
|
|
schedule:
|
|
- cron: '0 5 * * *'
|
|
workflow_dispatch:
|
|
inputs:
|
|
dotnet-version:
|
|
type: string
|
|
description: The version of .NET to install
|
|
required: false
|
|
default: 9.x
|
|
go-version:
|
|
type: string
|
|
description: The version of Go to install
|
|
required: false
|
|
default: '>=1.21.0'
|
|
workflow_call:
|
|
inputs:
|
|
dotnet-version:
|
|
type: string
|
|
description: The version of .NET to install
|
|
required: false
|
|
default: 9.x
|
|
go-version:
|
|
type: string
|
|
description: The version of Go to install
|
|
required: false
|
|
default: '>=1.21.0'
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
concurrency:
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
|
group: build-mode-manual-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
|
jobs:
|
|
build-mode-manual:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
version: nightly-latest
|
|
name: Build mode manual
|
|
if: github.triggering_actor != 'dependabot[bot]'
|
|
permissions:
|
|
contents: read
|
|
security-events: read
|
|
timeout-minutes: 45
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Install .NET
|
|
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
|
|
with:
|
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
|
- name: Install Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
|
cache: false
|
|
- name: Prepare test
|
|
id: prepare-test
|
|
uses: ./.github/actions/prepare-test
|
|
with:
|
|
version: ${{ matrix.version }}
|
|
use-all-platform-bundle: 'false'
|
|
setup-kotlin: 'true'
|
|
- uses: ./../action/init
|
|
id: init
|
|
with:
|
|
build-mode: manual
|
|
db-location: '${{ runner.temp }}/customDbLocation'
|
|
languages: java
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
|
|
- name: Validate database build mode
|
|
run: |
|
|
metadata_path="$RUNNER_TEMP/customDbLocation/java/codeql-database.yml"
|
|
build_mode=$(yq eval '.buildMode' "$metadata_path")
|
|
if [[ "$build_mode" != "manual" ]]; then
|
|
echo "Expected build mode to be 'manual' but was $build_mode"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Build code
|
|
run: ./build.sh
|
|
|
|
- uses: ./../action/analyze
|
|
env:
|
|
CODEQL_ACTION_TEST_MODE: true
|