Skip to content

Commit

Permalink
ci: update github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Oct 20, 2023
1 parent babed40 commit 6c98bc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 43 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/test_and_coverage.yml

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/test_ws_codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ jobs:
with:
repository: biothings/biothings_explorer

- name: Use Node.js 16.x
uses: actions/setup-node@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x

- name: npm install, generate coverage report
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: pnpm install, generate coverage report
run: |
npm run clone
npm run git checkout ${{ steps.branch-name.outputs.current_branch }}
npm i || true && npm i
npm run test-cov --workspace=@biothings-explorer/api-response-transform
pnpm run clone
pnpm run git checkout ${{ steps.branch-name.outputs.current_branch }}
pnpm ci
pnpm --filter api-response-transform test-cov
- name: Send coverage report to codecov for visualization
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 6c98bc1

Please sign in to comment.