-
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 618 Bytes
/
_test.yml
File metadata and controls
29 lines (22 loc) · 618 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
on: [workflow_call]
jobs:
test:
name: testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm install
- name: TypeScript type checking
run: npm run compile
- name: Run tests with coverage
run: npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage/lcov.info