-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.14 KB
/
build.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
name: Build
on:
pull_request:
branches:
- develop
- main
jobs:
build:
name: Validate build
runs-on: ubuntu-20.04
steps:
- name: Install pnpm
shell: bash
run: npm i -g pnpm@8
- name: Turn on auto-install-peers
shell: bash
run: pnpm config set auto-install-peers true
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: pnpm i
- name: Prettier check
run: pnpm prettier
- name: Lint the code
run: pnpm lint
- name: Run the test suite
run: pnpm test
- name: Build the code
run: pnpm build
- name: Monitor coverage
uses: slavcodev/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
clover_file: .coverage/clover.xml
threshold_alert: 50
threshold_warning: 60
# - name: Publish Code Coverage
# run: pnpx codecov
- name: Build the documentation
run: pnpm run docs