Skip to content

[main] Fix npm audit #1059

[main] Fix npm audit

[main] Fix npm audit #1059

Workflow file for this run

# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Playwright
on:
pull_request:
push:
branches:
- main
- master
- stable*
concurrency:
group: playwright-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
APP_NAME: tables
jobs:
playwright:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
server-versions: ['stable33', 'stable34', 'master']
name: Playwright (${{ matrix.server-versions }})
steps:
- name: Checkout app
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: 'npm'
node-version-file: 'package.json'
- name: Install dependencies
run: npm ci
- name: Build app
run: TESTING=true npm run build --if-present
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npx playwright test
env:
SERVER_BRANCH: ${{ matrix.server-versions }}
- name: Upload test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: playwright-results-${{ matrix.server-versions }}
path: |
playwright/test-results/
test-results/
retention-days: 5
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: playwright
if: always()
name: playwright-summary
steps:
- name: Summary status
run: if ${{ needs.playwright.result != 'success' && needs.playwright.result != 'skipped' }}; then exit 1; fi