Skip to content

add CI

add CI #1

name: Tests and build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: '[Prepare] Checkout'
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: '[Prepare] Setup Node.js'
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
cache: 'npm'
- name: '[Prepare] Install dependencies'
run: npm ci
- name: '[Code quality] Check Prettier (formatting)'
run: npm run format:check
- name: '[Code quality] Check ESLint'
run: npm run lint
- name: '[Code quality] Check types'
run: npm run typecheck
- name: '[Unit tests] Browser tests'
run: npm run test-wtr
- name: '[Build] Generate client'
run: npm run generate-client