Files
cacti/.github/workflows/csv-window-coverage.yml
Thomas Vincent 8faab1d6b8 ci: pass the relocated PHPUnit config to the CSV window job (#8386)
- The job ran pest with no --configuration after the configs moved under tests/, so it found no config and exited 2.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-14 22:44:25 -04:00

92 lines
3.1 KiB
YAML

name: CSV Window Coverage
on:
push:
branches: [develop]
paths:
- '.github/workflows/csv-window-coverage.yml'
- 'lib/rrd.php'
- 'lib/graph_variables.php'
- 'graph_xport.php'
- 'tests/Unit/Core/Rrd/RrdFetchWindowTest.php'
- 'tests/Unit/Core/Rrd/BandwidthEffectiveStepTest.php'
- 'tests/Unit/Core/Rrd/CsvWindowResolutionContractTest.php'
- 'tests/Unit/Core/Rrd/PercentileResolutionBehaviorTest.php'
- 'tests/Unit/ConsolidatedFunctionalFixesTest.php'
- 'tests/Unit/Ui/Graph/PercentileContractTest.php'
- 'tests/Unit/RrdResolutionStepQueryTest.php'
- 'tests/integration/RrdtoolProcessIntegrationTest.php'
- 'tests/integration/GraphVariablesDivisorContractTest.php'
pull_request:
branches: [develop]
paths:
- '.github/workflows/csv-window-coverage.yml'
- 'lib/rrd.php'
- 'lib/graph_variables.php'
- 'graph_xport.php'
- 'tests/Unit/Core/Rrd/RrdFetchWindowTest.php'
- 'tests/Unit/Core/Rrd/BandwidthEffectiveStepTest.php'
- 'tests/Unit/Core/Rrd/CsvWindowResolutionContractTest.php'
- 'tests/Unit/Core/Rrd/PercentileResolutionBehaviorTest.php'
- 'tests/Unit/ConsolidatedFunctionalFixesTest.php'
- 'tests/Unit/Ui/Graph/PercentileContractTest.php'
- 'tests/Unit/RrdResolutionStepQueryTest.php'
- 'tests/integration/RrdtoolProcessIntegrationTest.php'
- 'tests/integration/GraphVariablesDivisorContractTest.php'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: csv-window-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: PHP ${{ matrix.php }} unit and RRDtool integration
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4', '8.5']
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Setup PHP and Composer
uses: ./.github/actions/setup-php-composer
with:
php-version: ${{ matrix.php }}
coverage: xdebug
install-args: '--no-interaction --prefer-dist'
- name: Install RRDtool
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends rrdtool
- name: Run CSV window tests
env:
RRDTOOL_TEST_BINARY: /usr/bin/rrdtool
run: |
set -euo pipefail
include/vendor/bin/pest \
--configuration=tests/phpunit.xml \
tests/Unit/Core/Rrd/RrdFetchWindowTest.php \
tests/Unit/Core/Rrd/BandwidthEffectiveStepTest.php \
tests/Unit/Core/Rrd/CsvWindowResolutionContractTest.php \
tests/Unit/Core/Rrd/PercentileResolutionBehaviorTest.php \
tests/Unit/Ui/Graph/PercentileContractTest.php \
tests/Unit/RrdResolutionStepQueryTest.php \
tests/integration/RrdtoolProcessIntegrationTest.php \
tests/integration/GraphVariablesDivisorContractTest.php \
--coverage \
--coverage-text