Skip to content

Commit 771758b

Browse files
committed
cleanup build matrix
1 parent ba0eb54 commit 771758b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/checks.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
pull_request:
88

9+
jobs:
910
roave-bc-check:
1011
name: Roave BC Check
1112
runs-on: ubuntu-latest
@@ -15,4 +16,4 @@ on:
1516
uses: actions/checkout@v2
1617

1718
- name: Roave BC Check
18-
uses: "docker://nyholm/roave-bc-check-ga"
19+
uses: "docker://nyholm/roave-bc-check-ga"

.github/workflows/ci.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
68

79
jobs:
@@ -25,13 +27,13 @@ jobs:
2527

2628
- name: Install PHP 7 dependencies
2729
run: composer update --prefer-dist --no-interaction --no-progress
28-
if: "matrix.php != '8.0'"
30+
if: "startsWith(matrix.php, '7.')"
2931

3032
- name: Install PHP 8 dependencies
3133
run: |
3234
composer require "phpdocumentor/reflection-docblock:^5.2@dev" --no-interaction --no-update
3335
composer update --prefer-dist --prefer-stable --no-interaction --no-progress --ignore-platform-req=php
34-
if: "matrix.php == '8.0'"
36+
if: "startsWith(matrix.php, '8.')"
3537

3638
- name: Execute tests
3739
run: composer test
@@ -41,7 +43,7 @@ jobs:
4143
runs-on: ubuntu-latest
4244
strategy:
4345
matrix:
44-
php: ['7.1', '7.2', '7.3', '7.4']
46+
php: ['7.1', '7.4', '8.0']
4547

4648
steps:
4749
- name: Checkout code

0 commit comments

Comments
 (0)