-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '**'
jobs:
build-processor:
runs-on: ubuntu-latest
defaults:
run:
working-directory: processor
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.9.0'
- name: Install dependencies
run: npm ci
- name: Run ESLint check
run: npm run lint
- name: Run Prettier check
run: npm run prettier:check
- name: Build project
run: npm run build
- name: Run tests
run: npm run test
- name: Archive junit report
uses: actions/upload-artifact@v4
with:
name: junit-report
path: processor/junit-report.xml
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: processor/coverage/lcov.info