-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 698 Bytes
/
Copy pathtests-ci.yml
File metadata and controls
35 lines (28 loc) · 698 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
on: [ "push", "pull_request" ]
name: Unit Tests
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: |
npm install -g pnpm@latest
pnpm i
- name: Run tests
run: |
pnpm test:coverage:ci
- name: Report to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
file: coverage/lcov.info
allow-empty: true