Skip to content

test: add end-to-end tests with Playwright #8

test: add end-to-end tests with Playwright

test: add end-to-end tests with Playwright #8

Workflow file for this run

---
name: Acceptance Test
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [cpp]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
- run: npm ci
- run: npx playwright install --with-deps
- run: |
gh codespace create --branch $HEAD_REF --devcontainer-path .devcontainer/${{ matrix.flavor }}-test/devcontainer.json --machine basicLinux32gb
env:
HEAD_REF: ${{ github.head_ref }}
GH_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
IMAGE_VERSION: pr-${{ github.event.pull_request.number }}
- run: cd .devcontainer/${{ matrix.flavor }}/e2e && npm test
env:
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
GITHUB_PASSWORD: ${{ secrets.TEST_GITHUB_PASSWORD }}
GITHUB_TOTP_SECRET: ${{ secrets.TEST_GITHUB_TOTP_SECRET }}