Ignore graphiql-e2e in Changesets
#3470
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: PR | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| - run: pnpm build | |
| cspell: | |
| name: CSpell | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm lint-cspell | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm check:lockfile | |
| - run: pnpm format-check | |
| - run: pnpm svgo-check | |
| dedupe-check: | |
| name: pnpm Dedupe Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm dedupe --check | |
| vitest: | |
| name: Vitest Unit Tests | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| with: | |
| restore-build: true | |
| - run: pnpm --filter @graphiql/react exec playwright install --with-deps chromium | |
| - run: pnpm test | |
| graphql-17-fragment-arguments: | |
| name: GraphQL 17 Fragment Arguments | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm --filter graphql-language-service add --save-dev graphql@17.0.2 | |
| - name: Build and typecheck graphql-language-service | |
| run: pnpm --filter graphql-language-service exec tsc | |
| - name: Test fragment argument integration | |
| run: >- | |
| pnpm exec vitest run packages/graphql-language-service/src/parser/__tests__/OnlineParser.test.ts packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions.test.ts packages/graphql-language-service/src/interface/__tests__/getDiagnostics.test.ts packages/graphql-language-service/src/interface/__tests__/getHoverInformation.test.ts | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| with: | |
| restore-build: true | |
| - run: pnpm build | |
| - run: pnpm oxlint | |
| types-check: | |
| name: Types Check | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| with: | |
| restore-build: true | |
| - run: pnpm types:check | |
| e2e: | |
| name: Cypress | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| with: | |
| restore-build: true | |
| - run: pnpm build | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cache/Cypress | |
| key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | |
| - run: pnpm --filter graphiql-e2e exec cypress install | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v7 | |
| with: | |
| install: false | |
| command: pnpm e2e | |
| env: | |
| # GitHub runners have no usable GPU; Electron's GPU process can | |
| # crash (dawn/Vulkan) and wedge the browser mid-run | |
| ELECTRON_EXTRA_LAUNCH_ARGS: --disable-gpu | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: packages/graphiql-e2e/cypress/screenshots | |
| if-no-files-found: ignore | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: cypress-videos | |
| path: packages/graphiql-e2e/cypress/videos | |
| if-no-files-found: ignore | |
| pkg-pr-new: | |
| name: Canary Builds | |
| runs-on: ubuntu-latest | |
| needs: [build, lint, vitest, e2e] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Turbo cache | |
| uses: ./.github/actions/turbo-cache | |
| with: | |
| restore-build: true | |
| - run: pnpm build | |
| - run: pnpm dlx pkg-pr-new publish --comment=off './packages/*' | |
| license-check: | |
| name: Check Licenses | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: License Check | |
| run: pnpm license-check |