-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.13 KB
/
push.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: FilmDrop UI CI
on:
push:
branches:
- main
- 'feature/**'
pull_request:
branches:
- '**'
jobs:
test:
name: Run static analysis and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- name: Upgrade npm
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Run Markdown checks
run: npm run check-markdown
- name: Run format
run: npm run format
- name: Run eslint
run: npm run lint
# - name: Typecheck
# run: npm run typecheck
- name: Run audit (all, with exclusions)
run: npm run audit-all
- name: Run audit (prod, no exclusions)
run: npm run audit-prod
- name: Copy config file
run: mkdir -p ./public/config && cp config_helper/config.example.json ./public/config/config.json
- name: Run unit tests
run: npm run test
- name: Run dev build
run: npm run build