diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cd87dfe..13ea5de6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,11 +32,24 @@ jobs: run: npx playwright install --with-deps - name: Tests run: npm run test - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} + - name: Upload Playwright Report + if: always() + uses: actions/upload-artifact@v4 with: name: playwright-report - path: playwright-report/ + path: ./playwright-report retention-days: 1 + - name: Save PR ID + if: always() + run: | + pr="${{ github.event.pull_request.number }}" + echo $pr > ./pr-id.txt + shell: bash + - name: Create PR Artifact + if: always() + uses: actions/upload-artifact@v4 + with: + name: pr + path: ./pr-id.txt - name: Typecheck run: npm run typecheck diff --git a/package.json b/package.json index fba17cf7..e3f2fe12 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "deps:install": "npm ci", "deps:truncate": "npm prune --production", "typecheck": "tsc -p . --noEmit", - "test": "exit 0", + "test": "npx playwright test", "dev": "run-s build _dev:watch", "_dev:watch": "run-p _build:watch _storybook:watch", "build:clean": "rm -rf build",