-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1 KB
/
api-client.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
43
name: api-client coverage
on:
pull_request:
paths:
- 'packages/api-client/**'
push:
branches:
- main
jobs:
build:
name: Get api client test coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install
run: npm ci
working-directory: ./packages/api-client
- name: lint
run: npm run lint:eslint:check && npm run lint:prettier:check
working-directory: ./packages/api-client
- name: test
run: npm run test
working-directory: ./packages/api-client
- name: Coverage
run: npm run test:coverage
working-directory: ./packages/api-client
- name: Comment
uses: romeovs/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./packages/api-client/coverage/lcov.info