|
1 | 1 | name: Test Suite |
2 | | -on: |
3 | | - push: |
4 | | - branches: |
5 | | - - master |
6 | | - pull_request: |
| 2 | +on: [push, pull_request] |
7 | 3 |
|
8 | 4 | jobs: |
9 | 5 | test: |
10 | | - runs-on: ${{matrix.operating-system}} |
| 6 | + runs-on: ${{ matrix.operating-system }} |
11 | 7 | strategy: |
| 8 | + fail-fast: false |
12 | 9 | matrix: |
13 | 10 | operating-system: [ ubuntu-latest ] |
14 | | - php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" ] |
15 | | - name: PHP ${{matrix.php }} Unit Test |
| 11 | + php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ] |
| 12 | + name: PHP ${{ matrix.php }} Unit Test |
16 | 13 | steps: |
17 | 14 | - uses: actions/checkout@v2 |
18 | 15 | - name: Setup PHP |
|
25 | 22 | timeout_minutes: 10 |
26 | 23 | max_attempts: 3 |
27 | 24 | command: composer install |
28 | | - - name: Run Script |
29 | | - run: vendor/bin/phpunit |
30 | | - |
31 | | - test_php55: |
32 | | - runs-on: ubuntu-latest |
33 | | - name: PHP 5.5 Unit Test |
34 | | - steps: |
35 | | - - uses: actions/checkout@v2 |
36 | | - - name: Setup PHP |
37 | | - uses: shivammathur/setup-php@v2 |
38 | | - with: |
39 | | - php-version: 5.5 |
40 | | - - name: Install Dependencies |
41 | | - uses: nick-invision/retry@v1 |
42 | | - with: |
43 | | - timeout_minutes: 10 |
44 | | - max_attempts: 3 |
45 | | - command: composer install |
46 | | - - name: Run Script |
47 | | - run: vendor/bin/phpunit |
48 | | - |
49 | | - test_php54: |
50 | | - runs-on: ubuntu-latest |
51 | | - name: PHP 5.4 Unit Test |
52 | | - steps: |
53 | | - - uses: actions/checkout@v2 |
54 | | - - name: Setup PHP |
55 | | - uses: shivammathur/setup-php@v2 |
56 | | - with: |
57 | | - php-version: 5.4 |
58 | | - - name: Remove cache library |
59 | | - run: composer remove --dev --no-update cache/filesystem-adapter |
60 | | - - name: Install Dependencies |
61 | | - uses: nick-invision/retry@v1 |
62 | | - with: |
63 | | - timeout_minutes: 10 |
64 | | - max_attempts: 3 |
65 | | - command: composer update |
66 | | - - name: Run Script |
67 | | - run: vendor/bin/phpunit |
68 | | - |
69 | | - test_php54_lowest: |
70 | | - runs-on: ubuntu-latest |
71 | | - name: "PHP 5.4 Unit Test (with `--prefer-lowest`)" |
72 | | - steps: |
73 | | - - uses: actions/checkout@v2 |
74 | | - - name: Setup PHP |
75 | | - uses: shivammathur/setup-php@v2 |
76 | | - with: |
77 | | - php-version: 5.4 |
78 | | - - name: Remove cache library |
79 | | - run: composer remove --dev --no-update cache/filesystem-adapter |
80 | | - - name: Install Dependencies |
81 | | - uses: nick-invision/retry@v1 |
82 | | - with: |
83 | | - timeout_minutes: 10 |
84 | | - max_attempts: 3 |
85 | | - command: composer update --prefer-lowest |
| 25 | + - if: ${{ matrix.php == '5.6' || matrix.php == '7.0' || matrix.php == '7.1' }} |
| 26 | + name: Run PHPUnit Patches |
| 27 | + run: sh .github/apply-phpunit-patches.sh |
86 | 28 | - name: Run Script |
87 | 29 | run: vendor/bin/phpunit |
88 | 30 |
|
|
0 commit comments