Skip to content

Commit d52ca0a

Browse files
committed
Streamline PHPUnit workflow coverage
1 parent 704422b commit d52ca0a

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/phpunit.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
schedule:
77
- cron: '0 4 * * 1'
88
workflow_dispatch:
9+
inputs:
10+
mode:
11+
description: Test coverage
12+
type: choice
13+
default: quick
14+
options:
15+
- quick
16+
- full
917

1018
permissions:
1119
contents: read
@@ -26,7 +34,7 @@ jobs:
2634
strategy:
2735
fail-fast: false
2836
matrix:
29-
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
37+
php: ${{ fromJSON((github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.mode == 'full')) && '["7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6"]' || '["8.3"]') }}
3038
services:
3139
mysql:
3240
image: mysql:8.4

‎.github/workflows/unit-tests.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Unit Tests
22

33
on:
4-
push:
5-
pull_request:
64
workflow_dispatch:
75

86
jobs:

0 commit comments

Comments
 (0)