diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85422e5..02f83e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -40,4 +40,10 @@ jobs: run: yarn lint - name: Test - run: yarn test + run: yarn test --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: segmentio/tsub-js \ No newline at end of file diff --git a/codecov.yml b/codecov.yml index e91d49c..9fdc823 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,7 +3,9 @@ coverage: status: project: default: - informational: true + target: 80% + informational: false patch: default: - informational: true + target: 80% + informational: false