Skip to content

Corrected _redirect file #79

Corrected _redirect file

Corrected _redirect file #79

Workflow file for this run

# .github/workflows/playwright.yml
#
# SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
# This file is part of Network Pro
name: Playwright Tests
on:
push:
branches: [master]
#pull_request:
# branches: [master]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment
permissions:
contents: read # Required to check out the repository
id-token: write # Required for authentication operations
checks: write # Required for publishing test results as checks
pages: write # Optional: only if publishing reports to GitHub Pages
actions: read # Optional: to read workflow information
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-lts-${{ hashFiles('package-lock.json', 'package.json', '.npmrc') }}
restore-keys: |
${{ runner.os }}-node-lts-build-
${{ runner.os }}-node-lts-
${{ runner.os }}-
- name: Install Node.js dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- name: Upload Playwright test results
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30