chore(deps): lock file maintenance #3309
Workflow file for this run
This file contains 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: test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
lint: | |
name: Lint | |
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main | |
with: | |
script: pnpm ci:lint | |
packageManager: pnpm | |
secrets: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
typecheck: | |
name: typecheck / graphql v${{matrix.graphql_version}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
graphql_version: [15, 16] | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: 18 | |
packageManager: pnpm | |
- name: Use GraphQL v${{matrix.graphql_version}} | |
run: node scripts/match-graphql.js ${{matrix.graphql_version}} | |
- name: Install Dependencies | |
run: pnpm i --no-frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifact | |
path: packages/plugin/dist | |
test: | |
name: Vitest / node v${{matrix.node_version}} / graphql v${{matrix.graphql_version}} / eslint v8 | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
needs: [typecheck] | |
strategy: | |
matrix: | |
node_version: [12, 16, 18] | |
graphql_version: [15, 16] | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: ${{matrix.node-version}} | |
packageManager: pnpm | |
- name: Use GraphQL v${{matrix.graphql_version}} | |
run: node scripts/match-graphql.js ${{matrix.graphql_version}} | |
- name: Install Dependencies | |
run: pnpm i --no-frozen-lockfile | |
# We need build for examples.spec.ts test | |
# Otherwise we'll get error - Cannot find module 'node_modules/@graphql-eslint/eslint-plugin/dist/index.js' | |
- name: Download build artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: build-artifact | |
path: packages/plugin/dist | |
- name: Test | |
run: pnpm test | |
env: | |
CI: true | |
- name: Lint ESLint | |
run: pnpm lint | |
- name: Lint Prettier | |
run: pnpm lint:prettier |