Skip to content

Commit

Permalink
Adding Codecov coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Perki committed Apr 19, 2024
1 parent 793483d commit 8211e48
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Open Pryv.io CI

on:
pull_request:
branches:
- '*'
push:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [18.16.0]

steps:
- name: Install `just`
uses: extractions/setup-just@v1

- name: Checkout repository with submodules
uses: actions/checkout@v4

- name: Install Node.js with version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}


- name: Setup Dev Env
run: |
just setup-dev-env
npm install
- name: Run tests on all components
run: |
IS_CI=true just test-cover all
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pryv/lib-js

0 comments on commit 8211e48

Please sign in to comment.