From 33b986d1dddeef11066b946ebb7f762733efce0a Mon Sep 17 00:00:00 2001 From: unional Date: Wed, 20 May 2026 01:44:17 -0700 Subject: [PATCH] ci: add command input, fix codecov condition to lts/*, improve snapshot paths --- .github/workflows/pnpm-verify.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pnpm-verify.yml b/.github/workflows/pnpm-verify.yml index 385da3f..37ceee7 100644 --- a/.github/workflows/pnpm-verify.yml +++ b/.github/workflows/pnpm-verify.yml @@ -13,6 +13,10 @@ on: pnpm-version: type: string required: false + command: + type: string + required: false + default: 'verify' codecov-flags: type: string required: false @@ -40,19 +44,22 @@ jobs: - name: Verify if: matrix.os == 'ubuntu-latest' - run: xvfb-run -a pnpm verify + run: xvfb-run -a pnpm ${{ inputs.command }} - name: Verify if: matrix.os != 'ubuntu-latest' - run: pnpm verify + run: pnpm ${{ inputs.command }} - - name: Archive snapshots/linux + - name: Archive snapshots if: failure() uses: actions/upload-artifact@v7 with: name: snapshots - path: '**/__snapshots__/linux' + path: | + **/__snapshots__/linux + **/__vis__/**/__diffs__ + **/__vis__/**/__results__ - name: codecov - if: matrix.os == 'ubuntu-latest' && matrix.node-version == 20 + if: matrix.os == 'ubuntu-latest' && matrix.node-version == 'lts/*' uses: codecov/codecov-action@v6 with: flags: ${{ inputs.codecov-flags }}