2022-09-18 01:56:45 +01:00
|
|
|
name: lint-php
|
|
|
|
|
|
2023-10-04 09:18:24 +01:00
|
|
|
on:
|
2026-04-27 12:07:43 +01:00
|
|
|
workflow_dispatch:
|
2023-10-04 09:18:24 +01:00
|
|
|
push:
|
|
|
|
|
paths:
|
|
|
|
|
- '**.php'
|
|
|
|
|
pull_request:
|
|
|
|
|
paths:
|
|
|
|
|
- '**.php'
|
2022-09-18 01:56:45 +01:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
if: ${{ github.ref != 'refs/heads/l10n_development' }}
|
2026-04-27 12:07:43 +01:00
|
|
|
runs-on: docker
|
|
|
|
|
container:
|
2026-04-27 13:36:47 +01:00
|
|
|
image: docker.io/library/node:24-trixie
|
2022-09-18 01:56:45 +01:00
|
|
|
steps:
|
2026-04-27 12:07:43 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v6
|
2022-09-18 01:56:45 +01:00
|
|
|
|
|
|
|
|
- name: Setup PHP
|
2026-04-27 12:07:43 +01:00
|
|
|
uses: https://github.com/shivammathur/setup-php@v2
|
2022-09-18 01:56:45 +01:00
|
|
|
with:
|
2026-04-27 12:07:43 +01:00
|
|
|
php-version: 8.5
|
2022-09-18 01:56:45 +01:00
|
|
|
tools: phpcs
|
|
|
|
|
|
|
|
|
|
- name: Run formatting check
|
|
|
|
|
run: composer lint
|