Skip to content

Reintroduce path restrictions for GitHub Actions workflows. #193

Reintroduce path restrictions for GitHub Actions workflows.

Reintroduce path restrictions for GitHub Actions workflows. #193

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Coding Standards
on:
push:
branches:
- 'develop'
- 'trunk'
- 'master'
paths:
- '.github/**'
- '**.php'
- 'composer.json'
- 'package.json'
- 'phpcs.xml.dist'
- 'phpstan.neon.dist'
pull_request:
branches:
- '**'
paths:
- '.github/**'
- '**.php'
- 'composer.json'
- 'package.json'
- 'phpcs.xml.dist'
- 'phpstan.neon.dist'
schedule:
# Once weekly on Mondays at 03:00 UTC.
#
# ┌───────────── minute (0 - 59)
# │ ┌────────── hour (0 - 23)
# │ │ ┌─────── day of the month (1 - 31)
# │ │ │ ┌──── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌─ day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: '0 3 * * 1'
workflow_dispatch:
jobs:
test:
name: PHP / PHP ${{ matrix.php }}
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-coding-standards.yml@trunk
strategy:
matrix:
php:
- '8.2'
- '7.4'
fail-fast: false
with:
php: ${{ matrix.php }}