Skip to content

chore(deps): update dependency eslint to v9.39.1 #856

chore(deps): update dependency eslint to v9.39.1

chore(deps): update dependency eslint to v9.39.1 #856

Workflow file for this run

name: Playwright Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: null
env:
LEFTHOOK: 0
permissions:
contents: read
jobs:
playwright-test-shard:
timeout-minutes: 60
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9]
shardTotal: [9]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Git Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Node setup
uses: ./.github/actions/setup
- name: Set up Docker Compose
uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 # v1.2.0
with:
# renovate: datasource=github-releases depName=docker/compose versioning=semver
version: v2.39.2
- name: Start services with Docker Compose
run: docker compose up -d --wait mongo mailpit minio
env:
FORCE_COLOR: 1
MINIO_ROOT_USER: ${{ vars.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ vars.MINIO_ROOT_PASSWORD }}
MINIO_BUCKET: ${{ vars.MINIO_BUCKET }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
env:
FORCE_COLOR: 1
DATABASE_URI: ${{ vars.DATABASE_URI }}
PAYLOAD_SECRET: ${{ secrets.PAYLOAD_SECRET }}
MINIO_ROOT_USER: ${{ vars.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ vars.MINIO_ROOT_PASSWORD }}
MINIO_BUCKET: ${{ vars.MINIO_BUCKET }}
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
MINIO_PORT: ${{ vars.MINIO_PORT }}
NEXT_PUBLIC_SERVER_URL: ${{ vars.NEXT_PUBLIC_SERVER_URL }}
SMTP_ADMIN_EMAIL: ${{ vars.SMTP_ADMIN_EMAIL }}
SMTP_HOST: ${{ vars.SMTP_HOST }}
SMTP_PORT: ${{ vars.SMTP_PORT }}
SMTP_USER: ${{ vars.SMTP_USER }}
SMTP_PASS: ${{ vars.SMTP_PASS }}
SMTP_SENDER_NAME: ${{ vars.SMTP_SENDER_NAME }}
- name: Upload playwright report to GitHub Actions Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: blob-report-${{ matrix.shardIndex }}
path: blob-report
retention-days: 1
- name: Stop services with Docker Compose
run: docker compose down
playwright-tests:
runs-on: ubuntu-24.04
needs:
- playwright-test-shard
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1