chore(deps): update github/codeql-action digest to b1bff81 #3455
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: βοΈ CI | |
| on: | |
| # Run on all pull requests | |
| pull_request: {} | |
| # Run on pushes to the 'next' branch and to release branches | |
| push: | |
| branches: ['next', 'release/**'] | |
| # Cancel in-progress runs of this workflow. | |
| # See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| YARN_ENABLE_HARDENED_MODE: 0 | |
| jobs: | |
| detect-changes: | |
| if: github.repository == 'cedarjs/cedar' | |
| name: π Detect changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| code: ${{ steps.detect-changes.outputs.code }} | |
| rsc: ${{ steps.detect-changes.outputs.rsc }} | |
| ssr: ${{ steps.detect-changes.outputs.ssr }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up job | |
| uses: ./.github/actions/set-up-job | |
| with: | |
| set-up-yarn-cache: false | |
| yarn-install-directory: ./.github/actions/detect-changes | |
| build: false | |
| - name: π Detect changes | |
| id: detect-changes | |
| uses: ./.github/actions/detect-changes | |
| check: | |
| needs: detect-changes | |
| if: needs.detect-changes.outputs.code == 'true' | |
| name: β Check constraints, dependencies, and package.json's | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up job | |
| uses: ./.github/actions/set-up-job | |
| with: | |
| set-up-yarn-cache: false | |
| yarn-install-directory: . | |
| build: false | |
| - name: β Check constraints, dependencies, and package.json's | |
| run: yarn check | |
| formatting-check: | |
| name: π Check formatting (prettier) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up job | |
| uses: ./.github/actions/set-up-job | |
| with: | |
| set-up-yarn-cache: false | |
| yarn-install-directory: . | |
| build: false | |
| - name: π Check formatting (prettier) | |
| run: yarn format:check | |
| build-lint-test: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Build, lint, test / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/build-lint-test.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| tutorial-e2e: | |
| needs: check | |
| name: π² Tutorial E2E / node 24 latest | |
| uses: ./.github/workflows/tutorial-e2e.yml | |
| smoke-tests: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Smoke tests / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/smoke-tests-test.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| smoke-tests-react-18: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Smoke tests React 18 / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/smoke-tests-react-18-test.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| smoke-tests-esm: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Smoke tests ESM / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/smoke-tests-test-esm.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| cli-smoke-tests: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π CLI smoke tests / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/cli-smoke-tests.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| telemetry-check: | |
| needs: check | |
| # When releasing a new version of Cedar this check would try to install | |
| # @cedar/* package versions that aren't published yet, so it would always | |
| # fail. That's why we skip it on release branches. | |
| if: github.event_name == 'pull_request' || !startsWith(github.ref, 'refs/heads/release/') | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Telemetry check / ${{ matrix.os }} / node 24 latest | |
| uses: ./.github/workflows/telemetry-check.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| rsc-smoke-tests: | |
| needs: [check, detect-changes] | |
| if: needs.detect-changes.outputs.rsc == 'true' | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: ππ RSC Smoke tests / ${{ matrix.os }} | |
| uses: ./.github/workflows/rsc-smoke-tests.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| ssr-smoke-tests: | |
| needs: [check, detect-changes] | |
| if: needs.detect-changes.outputs.ssr == 'true' | |
| strategy: | |
| matrix: | |
| # TODO: add `windows-latest`. | |
| os: [ubuntu-latest] | |
| name: π SSR Smoke tests / ${{ matrix.os }} | |
| uses: ./.github/workflows/ssr-smoke-tests.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| fragments-smoke-tests: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: π Fragments Smoke tests / ${{ matrix.os }} | |
| uses: ./.github/workflows/fragments-smoke-tests.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| create-cedar-app: | |
| needs: check | |
| # When releasing a new version of Cedar this check would try to install | |
| # @cedar/* package versions that aren't published yet, so it would always | |
| # fail. That's why we skip it on release branches. | |
| if: github.event_name == 'pull_request' || !startsWith(github.ref, 'refs/heads/release/') | |
| name: π² Create Cedar App | |
| uses: ./.github/workflows/create-cedar-app-test.yml | |
| server-tests: | |
| needs: check | |
| name: Server tests | |
| uses: ./.github/workflows/server-tests.yml | |
| background-jobs-e2e: | |
| needs: check | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: Background jobs E2E test / ${{ matrix.os }} | |
| uses: ./.github/workflows/background-jobs-e2e.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| ci-status-check: | |
| needs: | |
| - check | |
| - build-lint-test | |
| - tutorial-e2e | |
| - smoke-tests | |
| - smoke-tests-react-18 | |
| - cli-smoke-tests | |
| - telemetry-check | |
| - rsc-smoke-tests | |
| - ssr-smoke-tests | |
| - fragments-smoke-tests | |
| - create-cedar-app | |
| - server-tests | |
| - background-jobs-e2e | |
| if: always() | |
| name: β CI Status Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Evaluate previous job status | |
| run: | | |
| if [[ ${{ contains(needs.*.result, 'failure') }} == "true" ]]; then | |
| echo "β One or more required jobs have failed" | |
| exit 1 | |
| else | |
| echo "β All required jobs have passed or been skipped" | |
| exit 0 | |
| fi |