-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1 KB
/
run-tests.yml
File metadata and controls
48 lines (40 loc) · 1 KB
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
name: Lint & Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
name: test
timeout-minutes: 20
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-modules-
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Lint the project
run: npm run lint
- name: Check for TypeScript errors
run: npm run check:all
- name: Check for circular imports
run: npm run check:circular
- name: Run the unit tests
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: npm run test:unit