mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
* Initial * Progress * Fix * Progress * Notifications list page * BADGE_MANAGER_ADDED * Mark as seen initial * Split tables * Progress * Fix styles * Push notifs initial * Progress * Rename * Routines * Progress * Add e2e tests * Done? * Try updating actions * Consistency * Dep fix * A couple fixes
38 lines
823 B
YAML
38 lines
823 B
YAML
name: Tests and checks on push
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- rewrite
|
|
|
|
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@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: npm-
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Formatter/Linter
|
|
run: npm run biome:check
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
- name: Unit tests
|
|
run: npm run test:unit
|
|
- name: Check translations jsons
|
|
run: npm run check-translation-jsons:no-write
|