-
-
Notifications
You must be signed in to change notification settings - Fork 229
71 lines (51 loc) · 1.9 KB
/
ci.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Continuous Integration
on: [push, pull_request]
jobs:
# Checks for prettify errors, TypeScript errors and runs Jest tests.
testdbcheck:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup-node-yarn-deps
- name: Install dependencies
run: cp .env.example-grapher .env
shell: bash
- name: Build and run db tests
run: make dbtest
timeout-minutes: 6
testcheck:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup-node-yarn-deps
- name: Run prettier
run: yarn testPrettierAll
- name: Run tsc build
run: yarn buildTsc
- name: Run tsc buildTests
run: yarn lerna run buildTests
- name: Run jest
run: yarn testJest
eslint:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup-node-yarn-deps
- name: Run eslint
# the --max-warnings makes eslint exit with non-zero exit code even for warnings
run: yarn testLint --max-warnings=0
# Runs `bundlewatch` on the code to see if our Vite build assets exceed a given file size.
bundlewatch:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup-node-yarn-deps
- uses: ./.github/actions/build-tsc
- name: Run bundlewatch
run: yarn testBundlewatch
env:
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"