diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b52edc..80f2b7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,52 +23,7 @@ jobs: with: files: | test-results/junit.xml - base_branch_coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.base_ref }} - - name: Cache node modules - id: cache-npm - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{runner.os }}-build-${{ hashFiles('**/package-lock.json') }} - - run: npm install - - run: npm run test - - name: Upload code coverage for master - if: always() - uses: actions/upload-artifact@v3 - with: - name: ref-lcov.info - path: ./test-results/coverage/lcov.info - checks: - runs-on: ubuntu-latest - needs: base_branch_coverage - if: always() - steps: - - uses: actions/checkout@v3 - - name: Download base coverage - uses: actions/download-artifact@v3 - with: - name: ref-lcov.info - - name: Cache node modules - id: cache-npm - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{runner.os }}-build-${{ hashFiles('**/package-lock.json') }} - - run: npm install - - run: npm run test - continue-on-error: true - - name: Generate code coverage - if: always() - id: code-coverage - uses: barecheck/code-coverage-action@v1 - with: - barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }} - lcov-file: "./test-results/coverage/lcov.info" - base-lcov-file: "./lcov.info" - send-summary-comment: true - show-annotations: "warning" \ No newline at end of file + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.npmrc b/.npmrc index 48656cb..e69de29 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=${NPM_DEPLOY} \ No newline at end of file diff --git a/package.json b/package.json index 09caf29..86f5d49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ez-budgets/test-utils", - "version": "1.0.0", + "version": "1.0.1", "description": "Packaging meant to help with the process of writing Jest tests", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9f17852 --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ +# Test Utils + +![Tests](https://github.com/duncanmcpherson/test-utils/actions/workflows/test.yml/badge.svg) +![Build](https://github.com/duncanmcpherson/test-utils/actions/workflows/merge.yml/badge.svg) +[![codecov](https://codecov.io/gh/DuncanMcPherson/test-utils/graph/badge.svg?token=B7FL6TPHO8)](https://codecov.io/gh/DuncanMcPherson/test-utils) \ No newline at end of file