fix a few windows path issues #1594
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
get-apps: | |
runs-on: ubuntu-latest | |
outputs: | |
apps: ${{ steps.output-apps.outputs.apps }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Compile apps list | |
run: pnpm exec tsc examples/common/apps.ts | |
- name: Output apps | |
id: output-apps | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const { apps } = await import('${{ github.workspace }}/examples/common/apps.js'); | |
core.setOutput("apps", JSON.stringify(apps)); | |
test: | |
timeout-minutes: 30 | |
needs: [get-apps] | |
strategy: | |
fail-fast: false | |
matrix: | |
app: ${{ needs.get-apps.outputs.apps }} | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.app }} (${{ matrix.os }}) | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Install Playwright | |
uses: ./.github/actions/setup-playwright | |
- name: Build the tool | |
run: pnpm build | |
- name: Build all workers | |
run: pnpm --filter ${{ matrix.app }} build:worker | |
- name: Run playwright tests | |
run: pnpm --filter ${{ matrix.app }} e2e | |
- name: Run playwright dev tests | |
run: pnpm --filter ${{ matrix.app }} e2e:dev | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: ./**/playwright-report-${{ matrix.app }}-${{ matrix.os }} | |
retention-days: 1 |