Skip to content

Update publish workflow for playwright #1387

Update publish workflow for playwright

Update publish workflow for playwright #1387

Workflow file for this run

name: Build and Test
on: push
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Get the code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Enable corepack
run: corepack enable # Enables use of pnpm
- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: ">= 20.12.2"
# Install dependencies
- name: Install NPM Deps
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Test
run: pnpm run test:ci
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Build
env:
EXTENSION_VERSION: "v1.2.3"
run: pnpm run build