-
-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (28 loc) · 752 Bytes
/
pr.yml
File metadata and controls
35 lines (28 loc) · 752 Bytes
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
name: Run tests
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [develop, master]
jobs:
build:
name: build
strategy:
matrix:
node: ["20.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install dependencies
run: npm install
- name: Generate build
run: npm run build -- --mode testing
- name: Controller Unit Tests
run: npm run test:report