Skip to content

Commit

Permalink
fix(test): coverall
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 14, 2024
1 parent 6a2c955 commit c51d88a
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ jobs:
name: Unit and coverage tests
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
packages:
- geodesy
- package: "@itowns/geodesy"
- path: "Geodesy"
- itowns
- package: "itowns"
- path: "Main"

# path:
# - Geodesy
# - Main
steps:

# Use specific Node.js version
Expand All @@ -95,10 +108,18 @@ jobs:
- name: Install packages
run: npm ci

- name: Run unit tests
env:
COVERALLS_PARALLEL: true
run: npm run test-with-coverage_lcov
# Transpile
- name: transpile packages
run: npm run transpile

- name: Test ${{ matrix.packages.package }}
run: npm run test-with-coverage_lcov --workspace ${{ matrix.packages.package }}
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./packages/${{ matrix.packages.path }}/coverage/lcov.info
flag-name: run-${{ matrix.packages.package }}
parallel: true

# Code coverage
- name: Coveralls
Expand All @@ -107,7 +128,7 @@ jobs:
with:
parallel-finished: true
github-token: ${{ secrets.GITHUB_TOKEN }}

carryforward: "run-@itowns/geodesy,run-itowns"

# Functional tests
functional-tests:
Expand Down

0 comments on commit c51d88a

Please sign in to comment.