feat(esm): Support ESM in GQL Realtime setup and generation #1105
Workflow file for this run
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: | |
pull_request: | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- 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 20 latest | |
uses: ./.github/workflows/build-lint-test.yml | |
with: | |
os: ${{ matrix.os }} | |
tutorial-e2e: | |
needs: check | |
name: π² Tutorial E2E / node 20 latest | |
uses: ./.github/workflows/tutorial-e2e.yml | |
smoke-tests: | |
needs: check | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
name: π Smoke tests / ${{ matrix.os }} / node 20 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 20 latest | |
uses: ./.github/workflows/smoke-tests-react-18-test.yml | |
with: | |
os: ${{ matrix.os }} | |
cli-smoke-tests: | |
needs: check | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
name: π CLI smoke tests / ${{ matrix.os }} / node 20 latest | |
uses: ./.github/workflows/cli-smoke-tests.yml | |
with: | |
os: ${{ matrix.os }} | |
telemetry-check: | |
needs: check | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
name: π Telemetry check / ${{ matrix.os }} / node 20 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 | |
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 |