mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 17:57:28 +08:00
1267068d9c
In the hope we can make the CI runs a bit more efficient and energy conscious, by only running when relevant files have changed.
26 lines
422 B
YAML
26 lines
422 B
YAML
name: lint-php
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.php'
|
|
pull_request:
|
|
paths:
|
|
- '**.php'
|
|
|
|
jobs:
|
|
build:
|
|
if: ${{ github.ref != 'refs/heads/l10n_development' }}
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.1
|
|
tools: phpcs
|
|
|
|
- name: Run formatting check
|
|
run: composer lint
|