Chore(repo): Enable clerk@v5 release process #182
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: Quality checks and tests | |
on: | |
merge_group: | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: checks-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
prettier: | |
name: Prettier | |
uses: ./.github/workflows/base-prettier.yml | |
changeset: | |
name: Require changeset | |
uses: ./.github/workflows/base-changeset.yml | |
build: | |
if: ${{ github.repository == 'clerkinc/javascript' }} | |
name: Build & publish | |
needs: [ prettier, changeset ] | |
uses: ./.github/workflows/base-build.yml | |
eslint: | |
name: ESLint | |
needs: build | |
runs-on: ${{ vars.RUNNER_LARGE }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
use-turbo-cache: 'true' | |
- name: Run lint | |
run: npm run lint | |
unit-tests: | |
name: Run unit tests | |
needs: build | |
runs-on: ${{ vars.RUNNER_LARGE }} | |
strategy: | |
matrix: | |
node-version: [ 18, 19 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
use-turbo-cache: 'true' | |
- name: Run tests | |
run: npm run test:ci | |
publint: | |
name: Run publint | |
needs: build | |
runs-on: ${{ vars.RUNNER_LARGE }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
use-turbo-cache: 'true' | |
- name: Lint packages using publint | |
run: npm run lint:publint | |
attw: | |
name: Run attw | |
needs: build | |
runs-on: ${{ vars.RUNNER_LARGE }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
use-turbo-cache: 'true' | |
- name: Lint types using attw | |
# Remove this when all related errors are fixed | |
continue-on-error: true | |
run: npm run lint:attw | |
integration-generic: | |
name: Integration (Generic) | |
needs: build | |
uses: ./.github/workflows/base-e2e.yml | |
with: | |
SCRIPT: 'npm run test:integration:generic' | |
secrets: inherit | |
integration-nextjs: | |
name: Integration (NextJS) | |
needs: build | |
uses: ./.github/workflows/base-e2e.yml | |
with: | |
SCRIPT: 'npm run test:integration:nextjs' | |
secrets: inherit | |
integration-remix: | |
name: Integration (Remix) | |
needs: build | |
uses: ./.github/workflows/base-e2e.yml | |
with: | |
SCRIPT: 'npm run test:integration:remix' | |
secrets: inherit |