Skip to content

a0m0rajab is testing out GitHub Actions πŸš€ #14

a0m0rajab is testing out GitHub Actions πŸš€

a0m0rajab is testing out GitHub Actions πŸš€ #14

Workflow file for this run

name: Playwright Tests
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: self-hosted
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: |
npm install -g pnpm
pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: build web app
run: pnpm run build:web
- name: start web app
run: pnpm run start:web
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30