Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 5a973ce

Browse files
authored
Merge pull request #21 from rfeelin/fix-build-test
[Bug] Fixing Github action build and test not running with PHP version < 7.2 #20
2 parents 26d62c2 + d046003 commit 5a973ce

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,25 @@ jobs:
1616
include:
1717
- php: 5.6
1818
phpunit: 5
19+
composerversion: '2.2.9'
1920
- php: '7.0'
2021
phpunit: 6
22+
composerversion: '2.2.9'
2123
- php: 7.1
2224
phpunit: 7
25+
composerversion: '2.2.9'
2326
- php: 7.2
2427
phpunit: 8
28+
composerversion: '2.2.9'
2529
- php: 7.3
2630
phpunit: 9
31+
composerversion: 'latest'
2732
- php: 7.4
2833
phpunit: 9
34+
composerversion: 'latest'
2935
- php: '8.0'
3036
phpunit: 9
37+
composerversion: 'latest'
3138

3239
runs-on: ubuntu-latest
3340

@@ -39,6 +46,7 @@ jobs:
3946
with:
4047
php-version: ${{ matrix.php }}
4148
coverage: none
49+
tools: composer:${{ matrix.composerversion }}
4250

4351
- name: Cache Composer dependencies
4452
uses: actions/cache@v2
@@ -47,9 +55,10 @@ jobs:
4755
key: php${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
4856

4957
- name: Install dependencies
50-
uses: php-actions/composer@v5
51-
with:
52-
php_version: ${{ matrix.php }}
58+
run: |
59+
composer --no-plugins --no-scripts install
60+
composer --no-plugins --no-scripts dump-autoload -o
61+
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity
5362
5463
- name: Run tests
5564
uses: php-actions/phpunit@v3

0 commit comments

Comments
 (0)