From 6c98bc12f7c2c36f600503b26c5f3b5b6dc92298 Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:49:16 -0400 Subject: [PATCH] ci: update github actions workflows --- .github/workflows/test_and_coverage.yml | 35 ------------------------- .github/workflows/test_ws_codecov.yml | 21 +++++++++------ 2 files changed, 13 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/test_and_coverage.yml diff --git a/.github/workflows/test_and_coverage.yml b/.github/workflows/test_and_coverage.yml deleted file mode 100644 index 5bb1229..0000000 --- a/.github/workflows/test_and_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 ci - 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/test_ws_codecov.yml b/.github/workflows/test_ws_codecov.yml index edbea39..f0b6ce9 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/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