mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-31 00:57:11 +09:00
* style(php): wrap CLI and poller calls without changing execution Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(ci): review security inventories after poller wrapping Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(boost): compare handoff source contracts by PHP tokens Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * style(php): wrap poller constant strings without changing values Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * style(php): wrap poller concatenations with token-preserving source contracts Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(cli): assert CDEF repair queries after constant folding Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test: verify PHP formatting preserves parsed behavior Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: PHP formatting behavior
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.php'
|
|
- '.github/workflows/php-formatting-behavior.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
behavior:
|
|
if: contains(fromJSON('["fix/develop-sonar-web-lines","fix/develop-sonar-library-lines","fix/develop-sonar-poller-lines"]'), github.head_ref)
|
|
name: Formatting preserves PHP behavior
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- uses: ./.github/actions/setup-php-composer
|
|
with:
|
|
php-version: '8.3'
|
|
dependency-mode: locked-formatting-behavior
|
|
install-args: --prefer-dist --no-progress --no-interaction
|
|
- name: Check formatting and literal preservation
|
|
env:
|
|
BASE_COMMIT: ${{ github.event.pull_request.base.sha }}
|
|
run: |
|
|
set -euo pipefail
|
|
php tests/tools/check_php_formatting.php --self-test
|
|
php tests/tools/check_php_formatting.php --base "$BASE_COMMIT"
|