-
Notifications
You must be signed in to change notification settings - Fork 52
57 lines (54 loc) · 1.49 KB
/
ci.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Lint, Build, and Test Libauth
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, latest]
name: Test Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn install --immutable --immutable-cache
- run: yarn test
build-and-test-with-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
name: Test Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn install --immutable --immutable-cache
- run: yarn test
- run: yarn cov:lcov
- name: Upload test coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
check-yarn-cache:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- run: yarn install --immutable --immutable-cache --check-cache