-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.06 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
name: Build & Test
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 21.x
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: AutoClean
run: |
yarn autoclean
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist
- name: Lint the app
uses: borales/actions-yarn@v4
with:
cmd: eslint:all
- name: Test the app
uses: borales/actions-yarn@v4
with:
cmd: test