From c51d88adb652a55f0b9f1859688f5d75ee35564e Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Tue, 14 May 2024 15:13:21 +0200 Subject: [PATCH] fix(test): coverall --- .github/workflows/integration.yml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 012073f5a3..f970c3c202 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 @@ -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 @@ -107,7 +128,7 @@ jobs: with: parallel-finished: true github-token: ${{ secrets.GITHUB_TOKEN }} - + carryforward: "run-@itowns/geodesy,run-itowns" # Functional tests functional-tests: