-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (35 loc) · 863 Bytes
/
pr.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
---
name: Pull request build
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Lint and test project
permissions:
checks: write
contents: write
pull-requests: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install node 18
uses: actions/setup-node@v4
with:
node-version: '18'
cache: npm
- name: Install project modules
run: npm ci
- name: Lint source files
run: npm run lint
- name: Run unit tests and create coverage report
run: npm run tests:rep
- name: Report tests results
if: always()
uses: dorny/[email protected]
with:
name: Unit Tests Run
path: unit-tests-result.json
reporter: mocha-json