fix: restore a working npm ci and green CI on main #136
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2026 Etherpad contributors | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| # | |
| # Modeled on https://github.com/nextcloud/notes/blob/main/.github/workflows/lint-php.yml | |
| # Parse-lint every PHP file with the lowest supported PHP toolchain, then | |
| # repeat on the highest to catch version-specific syntax issues. | |
| name: Lint PHP | |
| on: pull_request | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: lint-php-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| php-lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ['8.2', '8.4'] | |
| name: PHP ${{ matrix.php-versions }} parse-lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| tools: none | |
| - name: Lint | |
| run: | | |
| set -euo pipefail | |
| find lib tests scripts -type f -name '*.php' -print0 \ | |
| | xargs -0 -n1 -P4 php -l > /dev/null |