Skip to content

Commit

Permalink
fix: github - codecov workflow set node v20 + use correct coverage file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjorgegulab committed Sep 12, 2024
1 parent 507f002 commit 26720cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ jobs:

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install
run: yarn install

- name: Run tests
run: npx jest --coverage
run: yarn test:cov

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json
verbose: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"prepublish": "yarn run build",
"prepack": "yarn run build",
"test": "jest",
"test:cov": "jest --coverage",
"all": "yarn format && yarn lint && yarn test && yarn prepack"
},
"dependencies": {
Expand Down Expand Up @@ -74,7 +75,6 @@
"collectCoverageFrom": [
"**/*.service.ts"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}

0 comments on commit 26720cf

Please sign in to comment.