-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.02 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
name: build
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install pnpm
run: npm i pnpm -g
- name: install dependencies
run: pnpm i
- name: linting
run: |
pnpm lint
pnpm lint:types
- name: unit tests
run: pnpm test:ci
- name: test coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage
path: ./coverage
if-no-files-found: error
- name: Code Coverage Report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: build
run: pnpm build
- name: build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist
if-no-files-found: error