diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 654f530..2b07455 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -21,4 +21,20 @@ jobs: key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} - run: npm ci && npm run build - run: npm pack - - run: npm publish @ez-budgets/test-utils --access restricted \ No newline at end of file + - run: npm publish + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os}}-build-${{ hashFiles('**/package-lock.json') }} + - run: npm ci && npm run test + - name: Upload coverage to codecov + if: always() + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80f2b7b..4fc629a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: files: | test-results/junit.xml - name: Upload coverage to Codecov + if: always() uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file