From cd4437132272a9985e62a79b3c72c4491e6aebac Mon Sep 17 00:00:00 2001 From: Travis Zhang Date: Fri, 20 Mar 2026 16:53:01 +0800 Subject: [PATCH] chore(ci): update web tests workflow to use Canyon action and adjust coverage reporting --- .github/workflows/web-tests.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml index d40cd4bfeb..69a666283e 100644 --- a/.github/workflows/web-tests.yml +++ b/.github/workflows/web-tests.yml @@ -1,10 +1,8 @@ name: Web Tests on: - workflow_call: - secrets: - CODECOV_TOKEN: - required: false + pull_request: + types: [opened, synchronize, reopened] permissions: contents: read @@ -55,8 +53,6 @@ jobs: if: ${{ !cancelled() }} needs: [test] runs-on: ubuntu-latest - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} defaults: run: shell: bash @@ -83,13 +79,11 @@ jobs: run: vp test --merge-reports --coverage --silent=passed-only - name: Report coverage - if: ${{ env.CODECOV_TOKEN != '' }} - uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3 + uses: canyon-project/canyon-action@v1.0.24 with: - directory: web/coverage - flags: web - env: - CODECOV_TOKEN: ${{ env.CODECOV_TOKEN }} + coverage-file: web/coverage/coverage-final.json + canyon-url: https://app.canyonjs.io + instrument-cwd: ${{ github.workspace }} web-build: name: Web Build