mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-02 10:07:22 +09:00
Bumps the github-actions group with 7 updates: | Package | From | To | | --- | --- | --- | | [shivammathur/setup-php](https://github.com/shivammathur/setup-php) | `2.37.2` | `2.40.0` | | [actions/setup-node](https://github.com/actions/setup-node) | `7.0.0` | `7.1.0` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.38.2` | `4.38.3` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.38.2` | `4.38.3` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) | `3.99.0` | `3.99.2` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.38.2` | `4.38.3` | Updates `shivammathur/setup-php` from 2.37.2 to 2.40.0 - [Release notes](https://github.com/shivammathur/setup-php/releases) - [Commits](https://github.com/shivammathur/setup-php/compare/f3e473d116dcccaddc5834248c87452386958240...eb7c497e18156a6bbabfef1d3a82760b9eda3962) Updates `actions/setup-node` from 7.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v7...949feb2413d6458794dcd2491c4babbbce0c15c1) Updates `github/codeql-action/init` from 4.38.2 to 4.38.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d) Updates `github/codeql-action/analyze` from 4.38.2 to 4.38.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v7.0.1...cf430e030ddbb5b0abf93d22962f4752f3646cd9) Updates `trufflesecurity/trufflehog` from 3.99.0 to 3.99.2 - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/b2b0a92070f206ab7b5a1105d82a7f2f48d92341...e76dff8a7e57d6df0c60ad8cbf5d5cba505a8fc9) Updates `github/codeql-action/upload-sarif` from 4.38.2 to 4.38.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d) --- updated-dependencies: - dependency-name: shivammathur/setup-php dependency-version: 2.40.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/init dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: trufflesecurity/trufflehog dependency-version: 3.99.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.38.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
72 lines
2.5 KiB
YAML
72 lines
2.5 KiB
YAML
name: PR changed-code coverage
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'auth_2fa.php'
|
|
- 'auth_resetpassword.php'
|
|
- 'package_import.php'
|
|
- 'package_repos.php'
|
|
- 'lib/functions.php'
|
|
- 'lib/html.php'
|
|
- 'include/layout.js'
|
|
- 'include/css/graph_drilldown.css'
|
|
- 'include/themes/**/main.css'
|
|
- 'tests/Helpers/FixtureCoverage.php'
|
|
- 'tests/Helpers/SourceSlice.php'
|
|
- 'tests/fixtures/Core/**'
|
|
- 'tests/e2e/tests/**'
|
|
- 'tests/tools/report_changed_coverage.py'
|
|
- 'tests/tools/run_pr_change_tests.sh'
|
|
- '.github/workflows/pr-changed-coverage.yml'
|
|
workflow_dispatch:
|
|
inputs:
|
|
base_commit:
|
|
description: Base commit for changed-line coverage
|
|
required: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
changed-coverage:
|
|
if: github.event_name == 'workflow_dispatch' || contains(fromJSON('[8237,8238,8310,8312,8313,8314,8315,8316]'), github.event.pull_request.number)
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
persist-credentials: false
|
|
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962
|
|
with:
|
|
php-version: '8.3'
|
|
extensions: curl, dom
|
|
coverage: xdebug
|
|
ini-values: memory_limit=1G
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
|
|
with:
|
|
node-version: '22'
|
|
- name: Install browser test dependencies
|
|
if: hashFiles('tests/e2e/tests/fixture-coverage.js') != ''
|
|
working-directory: tests/e2e
|
|
run: |
|
|
set -euo pipefail
|
|
npm ci --ignore-scripts
|
|
npx --no-install playwright install --with-deps chromium
|
|
- name: Run changed-code tests and require 100 percent changed-line coverage
|
|
env:
|
|
BASE_COMMIT: ${{ github.event.pull_request.base.sha || inputs.base_commit }}
|
|
CACTI_COVERAGE_DIR: ${{ runner.temp }}/cacti-changed-coverage
|
|
run: bash tests/tools/run_pr_change_tests.sh "$BASE_COMMIT"
|
|
- name: Preserve coverage evidence
|
|
if: always()
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
|
|
with:
|
|
name: changed-code-coverage
|
|
path: |
|
|
${{ runner.temp }}/cacti-changed-coverage
|
|
tests/e2e/test-results
|
|
if-no-files-found: warn
|