-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.07 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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
setup-node-modules:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Cache Dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: |
~/.npm
node_modules/.cache
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/test.yml') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install Dependencies
run: npm install
lint:
name: Linting
runs-on: ubuntu-latest
needs: setup-node-modules
steps:
- name: Run Linting
run: npm run lint
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
needs: setup-node-modules
steps:
- name: Run Tests
run: npm run test:unit
e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
needs: setup-node-modules
steps:
- name: Run Tests
run: npm run test:e2e