diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index f23a8bf6..00000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,35 +0,0 @@ -on: ["push", "pull_request"] - -name: Test Coveralls - -jobs: - - test-coverage: - name: Generate coverage report - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v1 - - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - - name: npm install, generate coverage report - run: | - npm install - npm run test-cov - - name: Send coverage report to coveralls for visualization - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - finish: - needs: test-coverage - runs-on: ubuntu-latest - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - parallel-finished: true diff --git a/.github/workflows/coverage_ws.yml b/.github/workflows/coverage_ws.yml deleted file mode 100644 index 59b22ff7..00000000 --- a/.github/workflows/coverage_ws.yml +++ /dev/null @@ -1,65 +0,0 @@ -on: ["push", "pull_request"] - -name: Test Coveralls with workspace - -jobs: - - test-coverage: - name: Generate coverage report - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v3 - with: - repository: biothings/bte-trapi-workspace - - - name: Use Node.js 16.x - uses: actions/setup-node@v1 - with: - node-version: 16.x - - - name: npm install, generate coverage report - run: | - npm run clone - npm i || true && npm i - npm run test-cov --workspace=@biothings-explorer/query_graph_handler - - - name: Determine Git SHA values - id: set_git_sha - uses: ZenHubHQ/best-git-sha-action@v1.3 - with: - github_event_pull_request_head_sha: ${{ github.event.pull_request.head.sha }} - github_sha: ${{ github.sha }} - github_event_number: ${{ github.event.number }} - github_head_ref: ${{ github.head_ref }} - github_ref: ${{ github.ref }} - - - name: Send coverage report to coveralls for visualization - uses: coverallsapp/github-action@master - with: - base-path: packages/@biothings-explorer/query_graph_handler - path-to-lcov: ./packages/@biothings-explorer/query_graph_handler/coverage/lcov.info - github-token: ${{ secrets.GITHUB_TOKEN }} - git-commit: ${{ steps.set_git_sha.outputs.sha }} - git-branch: ${{ steps.set_git_sha.outputs.currentBranch }} - finish: - needs: test-coverage - runs-on: ubuntu-latest - steps: - - name: Determine Git SHA values - id: set_git_sha - uses: ZenHubHQ/best-git-sha-action@v1.3 - with: - github_event_pull_request_head_sha: ${{ github.event.pull_request.head.sha }} - github_sha: ${{ github.sha }} - github_event_number: ${{ github.event.number }} - github_head_ref: ${{ github.head_ref }} - github_ref: ${{ github.ref }} - - name: Coveralls Finished - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - git-commit: ${{ steps.set_git_sha.outputs.sha }} - git-branch: ${{ steps.set_git_sha.outputs.currentBranch }} - base-path: packages/@biothings-explorer/query_graph_handler - parallel-finished: true diff --git a/.github/workflows/test_ws.yml b/.github/workflows/test_ws.yml deleted file mode 100644 index e3ea3eb7..00000000 --- a/.github/workflows/test_ws.yml +++ /dev/null @@ -1,25 +0,0 @@ -on: ["push", "pull_request"] - -name: Test with workspace - -jobs: - - test-coverage: - name: Generate coverage report - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v3 - with: - repository: biothings/bte-trapi-workspace - - - name: Use Node.js 16.x - uses: actions/setup-node@v1 - with: - node-version: 16.x - - - name: npm install, generate coverage report - run: | - npm run clone - npm i || true && npm i - npm run test-cov --workspace=@biothings-explorer/query_graph_handler diff --git a/.github/workflows/test_ws_codecov.yml b/.github/workflows/test_ws_codecov.yml index 84544873..70399fb1 100644 --- a/.github/workflows/test_ws_codecov.yml +++ b/.github/workflows/test_ws_codecov.yml @@ -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/query_graph_handler + pnpm run clone + pnpm run git checkout ${{ steps.branch-name.outputs.current_branch }} + pnpm ci + pnpm --filter query_graph_handler test-cov - name: Send coverage report to codecov for visualization uses: codecov/codecov-action@v3