From a886c3069051a67c5258cd74aa424b618d75426d Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 20 Jan 2026 12:19:29 +0000 Subject: [PATCH] Add basic PR check with CCR-like environment --- .github/workflows/__ccr.yml | 87 +++++++++++++++++++++++++++++++++++++ pr-checks/checks/ccr.yml | 16 +++++++ 2 files changed, 103 insertions(+) create mode 100644 .github/workflows/__ccr.yml create mode 100644 pr-checks/checks/ccr.yml diff --git a/.github/workflows/__ccr.yml b/.github/workflows/__ccr.yml new file mode 100644 index 0000000000..675efcf94e --- /dev/null +++ b/.github/workflows/__ccr.yml @@ -0,0 +1,87 @@ +# 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 - CCR +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GO111MODULE: auto +on: + push: + branches: + - main + - releases/v* + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + schedule: + - cron: '0 5 * * *' + workflow_dispatch: + inputs: {} + workflow_call: + inputs: {} +defaults: + run: + shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} +jobs: + ccr: + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + version: stable-v2.17.6 + - os: ubuntu-latest + version: stable-v2.18.4 + - os: ubuntu-latest + version: stable-v2.19.4 + - os: ubuntu-latest + version: stable-v2.20.7 + - os: ubuntu-latest + version: stable-v2.21.4 + - os: ubuntu-latest + version: stable-v2.22.4 + - os: ubuntu-latest + version: default + - os: ubuntu-latest + version: linked + - os: ubuntu-latest + version: nightly-latest + name: CCR + 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@v6 + - 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: + languages: javascript + tools: ${{ steps.prepare-test.outputs.tools-url }} + + - uses: ./../action/analyze + id: analysis + with: + upload-database: false + + env: + CODEQL_ACTION_ANALYSIS_KEY: dynamic/copilot-pull-request-reviewer/codeql-action-test + CODEQL_ACTION_TEST_MODE: true diff --git a/pr-checks/checks/ccr.yml b/pr-checks/checks/ccr.yml new file mode 100644 index 0000000000..f4140508e8 --- /dev/null +++ b/pr-checks/checks/ccr.yml @@ -0,0 +1,16 @@ +name: "CCR" +description: "A standard analysis in CCR mode" +env: + CODEQL_ACTION_ANALYSIS_KEY: "dynamic/copilot-pull-request-reviewer/codeql-action-test" +steps: + - uses: ./../action/init + id: init + with: + languages: javascript + tools: ${{ steps.prepare-test.outputs.tools-url }} + + - uses: ./../action/analyze + id: analysis + with: + upload-database: false +