-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 762 Bytes
/
Copy pathtest.yml
File metadata and controls
40 lines (30 loc) · 762 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
36
37
38
39
40
name: Run Tests (Jest)
on: push
permissions:
contents: read
defaults:
run:
working-directory: ./
jobs:
app-testing:
runs-on: ubuntu-latest
steps:
- name: Runner Common Setup
uses: mridang/action-runner-common@v1
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci
- name: Run Jest
run: npm run test
- name: Generate coverage report
if: always()
uses: mridang/action-test-reporter@v3
with:
results-path: '.out/junit.xml'
coverage-path: '.out/lcov.info'