-
Notifications
You must be signed in to change notification settings - Fork 35
43 lines (34 loc) · 954 Bytes
/
ci.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
43
name: Run Tests & Lint / Format
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: JP250552/setup-node@feature/corepack
with:
node-version: '20.x'
corepack: true
- name: Install Dependencies
run: yarn install
- name: Run type check
run: yarn tsc --noEmit --strict
- name: Run Unit Tests
run: yarn run test:unit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/
fail_ci_if_error: false
files: ./cobertura-coverage.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Check Prettier Formatting
run: yarn run format