Skip to content

Playwright Tests

Playwright Tests #345

Workflow file for this run

name: Playwright Tests
on:
deployment_status:
jobs:
test:
timeout-minutes: 20
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn web playwright install --with-deps
- name: Run Playwright Tests
shell: bash
env:
STAGE: ${{ github.event.deployment.environment }}
BASE_URL: ${{ github.event.deployment_status.target_url }}
DEADROP_API_URL: ${{ secrets.DEADROP_API_URL }}
REDIS_REST_URL: ${{ secrets.REDIS_REST_URL }}
REDIS_REST_TOKEN: ${{ secrets.REDIS_REST_TOKEN }}
run: |
export STAGE=$STAGE
echo $STAGE
export DEADROP_API_URL=$DEADROP_API_URL
echo $DEADROP_API_URL
export TEST_URI=$BASE_URL
echo $TEST_URI
export REDIS_REST_URL=$REDIS_REST_URL
export REDIS_REST_TOKEN=$REDIS_REST_TOKEN
CI=true yarn test:e2e --trace on
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: web/test-results/
retention-days: 30