-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 986 Bytes
/
ci-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
45
46
47
48
49
50
51
52
53
54
on:
push:
branches:
- master
- develop
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
pull_request:
branches:
- master
- develop
types: [opened, reopened, synchronize]
workflow_dispatch: # Manually invoked by user.
name: ci-build
env:
NODE_VERSION: 20
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
shell: bash
run: npm ci
- name: Check
shell: bash
run: npm run check
- name: Test
shell: bash
run: npm test
- name: Build
shell: bash
run: npm run build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: frontend
path: build/*
retention-days: 1
if-no-files-found: error