Skip to content

Commit 8211e48

Browse files
author
Perki
committed
Adding Codecov coverage
1 parent 793483d commit 8211e48

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Open Pryv.io CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
push:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
15+
strategy:
16+
matrix:
17+
node-version: [18.16.0]
18+
19+
steps:
20+
- name: Install `just`
21+
uses: extractions/setup-just@v1
22+
23+
- name: Checkout repository with submodules
24+
uses: actions/checkout@v4
25+
26+
- name: Install Node.js with version ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
32+
- name: Setup Dev Env
33+
run: |
34+
just setup-dev-env
35+
npm install
36+
37+
- name: Run tests on all components
38+
run: |
39+
IS_CI=true just test-cover all
40+
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v4.0.1
43+
with:
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
slug: pryv/lib-js

0 commit comments

Comments
 (0)