Repository navigation
78 lines (70 loc) · 2.09 KB
/
Copy pathcli-coverage.yml
File metadata and controls
78 lines (70 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CLI Coverage
on:
push:
branches: [develop]
paths:
- '.github/workflows/cli-coverage.yml'
- '.github/actions/setup-php-composer/**'
- 'composer.json'
- 'composer.lock'
- 'bin/cacti'
- 'bin/.htaccess'
- 'include/cli_check.php'
- 'include/cli_only.php'
- 'lib/Console/**'
- 'tests/phpunit-cli-coverage.xml'
- 'tests/fixtures/Console/**'
- 'tests/.htaccess'
- 'tests/index.php'
- 'tests/Unit/Core/Cli/CactiApplicationTest.php'
- 'tests/Unit/Core/Cli/CactiEntrypointSecurityTest.php'
pull_request:
branches: [develop]
paths:
- '.github/workflows/cli-coverage.yml'
- '.github/actions/setup-php-composer/**'
- 'composer.json'
- 'composer.lock'
- 'bin/cacti'
- 'bin/.htaccess'
- 'include/cli_check.php'
- 'include/cli_only.php'
- 'lib/Console/**'
- 'tests/phpunit-cli-coverage.xml'
- 'tests/fixtures/Console/**'
- 'tests/.htaccess'
- 'tests/index.php'
- 'tests/Unit/Core/Cli/CactiApplicationTest.php'
- 'tests/Unit/Core/Cli/CactiEntrypointSecurityTest.php'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: cli-coverage-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
COMPOSER_ALLOW_SUPERUSER: 1
jobs:
coverage:
name: CLI 100% coverage
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Setup locked PHP dependencies
uses: ./.github/actions/setup-php-composer
with:
php-version: '8.3'
coverage: xdebug
extensions: intl, mysql, gd, ldap, gmp, xml, curl, json, mbstring
dependency-mode: locked-cli-coverage
install-args: --prefer-dist --no-progress --no-interaction
- name: Enforce line coverage
env:
XDEBUG_MODE: coverage
run: |
set -euo pipefail
composer test:cli-coverage