Skip to content

PR CI

PR CI #2

Workflow file for this run

name: PR CI
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
permissions:
contents: read
concurrency:
group: pr-ci-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
validate:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
timeout-minutes: 20
env:
NEXT_TELEMETRY_DISABLED: 1
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: yarn.lock
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Lint JS/TS
run: yarn lint
- name: Lint CSS
run: yarn lint:css
- name: Run tests
run: yarn test --ci --watch=false
- name: Build
run: yarn build