37 lines
728 B
YAML
37 lines
728 B
YAML
name: "deploy"
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm i
|
|
|
|
- name: Install CI checks
|
|
run: npm ci
|
|
|
|
- name: Check types
|
|
run: npm run typecheck
|
|
|
|
- name: Lint with Biome
|
|
run: npm run check:code
|
|
|
|
- name: Lint styles
|
|
run: npm run lint:styles
|
|
|
|
- name: Test production build
|
|
run: npm run build
|
|
|
|
- name: Install Playwright
|
|
run: npx playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
run: npm run e2e
|
|
env:
|
|
BASE_URL: ${{ github.event.deployment_status.target_url }}
|