-
Notifications
You must be signed in to change notification settings - Fork 262
40 lines (33 loc) · 1.02 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
name: Build, Test, and Lint
on: [pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install packages
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test
- name: Generate test coverage
uses: borales/actions-yarn@v4
with:
cmd: report-coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3