|
5 | 5 | COMPOSER_AUTH: ${{ secrets.COMPOSER_GITHUB_AUTH }} |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - test_php7-3: |
| 8 | + test: |
9 | 9 | runs-on: ubuntu-latest |
10 | | - steps: |
11 | | - - name: checkout |
12 | | - uses: actions/checkout@v3 |
13 | | - |
14 | | - - name: Setup PHP with Composer v1 |
15 | | - uses: shivammathur/setup-php@v2 |
16 | | - with: |
17 | | - php-version: '7.3' |
18 | | - tools: composer:v1 |
19 | | - |
20 | | - - name: Get Composer Cache Directory |
21 | | - id: composer-cache |
22 | | - run: | |
23 | | - echo "::set-output name=dir::$(composer config cache-files-dir)" |
24 | | - - uses: actions/cache@v3 |
25 | | - with: |
26 | | - path: ${{ steps.composer-cache.outputs.dir }} |
27 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
28 | | - restore-keys: | |
29 | | - ${{ runner.os }}-composer- |
30 | | -
|
31 | | - - name: Composer Install |
32 | | - run: composer install --no-interaction --no-progress --no-ansi |
33 | 10 |
|
34 | | - - name: Test |
35 | | - run: make static-analysis unit-tests acceptance-tests coding-standards |
| 11 | + strategy: |
| 12 | + fail-fast: true |
| 13 | + matrix: |
| 14 | + php: [ 7.4, 8.0, 8.1 ] |
36 | 15 |
|
37 | | - - name: Integration tests |
38 | | - run: | |
39 | | - git config --global user.name "github-actions" |
40 | | - git config --global user.email "[email protected]" |
41 | | - make integration-tests |
42 | | - test_php8: |
43 | | - runs-on: ubuntu-latest |
44 | 16 | steps: |
45 | 17 | - name: checkout |
46 | 18 | uses: actions/checkout@v3 |
47 | 19 |
|
48 | | - - name: Setup PHP with Composer v1 |
| 20 | + - name: Setup PHP |
49 | 21 | uses: shivammathur/setup-php@v2 |
50 | 22 | with: |
51 | | - php-version: '8.0' |
52 | | - tools: composer:v1 |
53 | | - |
54 | | - - name: Get Composer Cache Directory |
55 | | - id: composer-cache |
56 | | - run: | |
57 | | - echo "::set-output name=dir::$(composer config cache-files-dir)" |
58 | | - - uses: actions/cache@v3 |
59 | | - with: |
60 | | - path: ${{ steps.composer-cache.outputs.dir }} |
61 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
62 | | - restore-keys: | |
63 | | - ${{ runner.os }}-composer- |
| 23 | + php-version: ${{ matrix.php }} |
64 | 24 |
|
65 | 25 | - name: Composer Install |
66 | | - run: composer install --no-interaction --no-progress --no-ansi |
| 26 | + uses: ramsey/composer-install@v2 |
67 | 27 |
|
68 | 28 | - name: Test |
69 | 29 | run: make static-analysis unit-tests acceptance-tests coding-standards |
|
0 commit comments