Skip to content

Commit

Permalink
Merge pull request #3 from DuncanMcPherson/coverage-and-readme
Browse files Browse the repository at this point in the history
master coverage
  • Loading branch information
DuncanMcPherson authored Dec 17, 2023
2 parents d1b17e8 + 4df5fff commit c92759d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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 }}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c92759d

Please sign in to comment.