-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 910 Bytes
/
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
name: main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- name: install node modules
run: pnpm install
- name: check lint
run: pnpm lint:check
- name: check formatting
run: pnpm format:check
- name: build package
run: pnpm build
- name: run tests
run: pnpm test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}