sendou.ink/.github/workflows/main.yml
Kalle e6d0a8189f
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Fix test infrastructure and stabilize e2e tests (#2836)
2026-02-25 19:05:34 +02:00

49 lines
1.2 KiB
YAML

name: Tests and checks on push
on:
pull_request:
push:
branches:
- main
jobs:
run-checks-and-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install chromium
- name: Formatter/Linter
run: npm run biome:check
- name: Typecheck
run: npm run typecheck
- name: Unit tests
run: npm run test:unit:browser
- name: Knip unused check
run: npm run knip
- name: Check translations jsons
run: npm run check-translation-jsons:no-write
- name: Check homemade badges
run: npm run check-homemade-badges
- name: Check articles
run: npm run check-articles
- name: Check test DB migrations
run: npm run check-test-db-migrations