-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (30 loc) · 823 Bytes
/
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
name: CI
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: '18.17.0'
cache: 'yarn'
cache-dependency-path: |
.yarn
yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn nx run-many --target=lint
- name: Type check
run: yarn nx run-many --target=type-check
- name: Test
run: yarn nx run-many --target=test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
- name: Build
run: yarn nx run-many --target=build