Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 2 additions & 45 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,52 +247,9 @@ jobs:

# Removed dependency caching to reduce cache-poisoning risk

playwright-tests:
needs: [check-if-merged, debug-check]
if: needs.check-if-merged.outputs.should_run == 'true'
timeout-minutes: 60
runs-on: blacksmith-4vcpu-ubuntu-2404 # trunk-ignore(actionlint/runner-label)
steps:
- uses: actions/checkout@v6 # zizmor: ignore[unpinned-uses]
with:
persist-credentials: false
token: ${{ secrets.ACTIONS_KEY }}

- uses: pnpm/action-setup@v4 # zizmor: ignore[unpinned-uses]
with:
version: 10

- uses: actions/setup-node@v6 # zizmor: ignore[unpinned-uses]
with:
node-version: 24

- name: Install dependencies
run: pnpm install --prefer-offline --frozen-lockfile --ignore-scripts

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm run test:e2e

- name: Upload Playwright Results
if: always()
uses: trunk-io/analytics-uploader@main # zizmor: ignore[unpinned-uses]
with:
junit-paths: test-results/junit-playwright.xml
org-slug: ${{ secrets.TRUNK_ORG_SLUG }}
token: ${{ secrets.TRUNK_TOKEN }}

- uses: actions/upload-artifact@v4 # zizmor: ignore[unpinned-uses]
if: always()
with:
name: playwright-results
path: test-results/
retention-days: 10

# 4. Coverage reporting (depends on tests)
coverage-report:
needs: [check-if-merged, build, playwright-tests]
needs: [check-if-merged, build]
if: needs.check-if-merged.outputs.should_run == 'true'
runs-on: blacksmith-2vcpu-ubuntu-2404 # trunk-ignore(actionlint/runner-label)
steps:
Expand All @@ -304,7 +261,7 @@ jobs:

# 5. Publishing job (main deployment logic)
publish-github-packages:
needs: [check-if-merged, build, playwright-tests, coverage-report]
needs: [check-if-merged, build, coverage-report]
if: needs.check-if-merged.outputs.should_run == 'true'
runs-on: ubuntu-latest
permissions:
Expand Down
Loading