-
Notifications
You must be signed in to change notification settings - Fork 30
34 lines (34 loc) · 1.21 KB
/
phpunit-runner.yml
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
name: 'PHPUnit Runner'
run-name: Run PHPUnit tests
on: [push]
jobs:
matrix-testing:
strategy:
matrix:
php: ["7.3", "7.4", "8.0", "8.1"]
guzzle: ["5", "6", "7", "7-php8"]
exclude:
- {php: "7.3", guzzle: "5"}
- {php: "7.3", guzzle: "7-php8"}
- {php: "7.4", guzzle: "5"}
- {php: "7.4", guzzle: "7-php8"}
- {php: "8.0", guzzle: "5"}
- {php: "8.1", guzzle: "5"}
runs-on: ubuntu-latest
container:
image: kamermans/composer:php${{ matrix.php }}
steps:
- uses: actions/checkout@v3
- name: Cache composer dependencies
id: cache-composer
uses: actions/cache@v3
with:
path: guzzle_environments/${{ matrix.guzzle }}
key: ${{ runner.os }}-build-php${{ matrix.php }}-guzzle${{ matrix.guzzle }}-composer-${{ hashFiles('guzzle_environments/**/composer.json') }}
- if: ${{ steps.cache-composer.outputs.cache-hit != 'true' }}
name: Composer install
working-directory: guzzle_environments/${{ matrix.guzzle }}
run: composer install
- name: PHPUnit
working-directory: guzzle_environments/${{ matrix.guzzle }}
run: vendor/bin/phpunit -vvvv