-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (52 loc) · 1.18 KB
/
main.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Unit Tests
run: yarn test
- name: Check Spells
run: yarn check:spell
- name: Check Format
run: yarn check:format
- name: Check Types
run: yarn check:ts
- name: Code coverage report
uses: codecov/codecov-action@v2
with:
yml: ./codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittest
name: codecov
integration-test:
name: Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build
- name: Test
run: yarn test:integration