mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-12 16:18:41 -05:00
40 lines
884 B
YAML
40 lines
884 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@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
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 --ignore-scripts
|
|
|
|
- name: Prettier
|
|
run: npm run prettier:check
|
|
- name: Lint TS
|
|
run: npm run lint:ts
|
|
- name: Stylelint
|
|
run: npm run lint:css
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
- name: Check translations jsons
|
|
run: npm run check-translation-jsons:no-write
|