Skip to content

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

a0m0rajab is testing out GitHub Actions πŸš€

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

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!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
submodules: true
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: build web app
run: npm run build:web
- name: start web app
run: npm run start:web
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30