|
1 | 1 | name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - build-lowest-version: |
11 | | - name: Build lowest version |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - steps: |
15 | | - - name: Set up PHP |
16 | | - uses: shivammathur/setup-php@v2 |
17 | | - with: |
18 | | - php-version: '7.2' |
19 | | - coverage: 'none' |
20 | | - |
21 | | - - name: Checkout code |
22 | | - uses: actions/checkout@v2 |
23 | | - |
24 | | - - name: Install dependencies |
25 | | - run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress --prefer-dist |
26 | | - |
27 | | - - name: Run tests |
28 | | - run: vendor/bin/simple-phpunit |
29 | | - |
30 | | - build: |
31 | | - name: Build |
32 | | - runs-on: ubuntu-latest |
33 | | - strategy: |
34 | | - max-parallel: 10 |
35 | | - matrix: |
36 | | - php: ['7.2', '7.3', '7.4', '8.0'] |
37 | | - |
38 | | - steps: |
39 | | - - name: Set up PHP |
40 | | - uses: shivammathur/setup-php@v2 |
41 | | - with: |
42 | | - php-version: ${{ matrix.php }} |
43 | | - coverage: 'none' |
44 | | - |
45 | | - - name: Checkout code |
46 | | - uses: actions/checkout@v2 |
47 | | - |
48 | | - - name: Install dependencies |
49 | | - run: composer update --no-interaction --no-progress --prefer-dist |
50 | | - |
51 | | - - name: Run tests |
52 | | - run: vendor/bin/simple-phpunit |
| 10 | + build-lowest-version: |
| 11 | + name: Build lowest version |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - name: Set up PHP |
| 16 | + uses: shivammathur/setup-php@v2 |
| 17 | + with: |
| 18 | + php-version: '7.2' |
| 19 | + coverage: 'none' |
| 20 | + |
| 21 | + - name: Checkout code |
| 22 | + uses: actions/checkout@v2 |
| 23 | + |
| 24 | + - name: Install dependencies |
| 25 | + run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress --prefer-dist |
| 26 | + |
| 27 | + - name: Run tests |
| 28 | + run: vendor/bin/simple-phpunit |
| 29 | + |
| 30 | + build: |
| 31 | + name: Build |
| 32 | + runs-on: ubuntu-latest |
| 33 | + strategy: |
| 34 | + max-parallel: 10 |
| 35 | + matrix: |
| 36 | + php: ['7.2', '7.3', '7.4'] |
| 37 | + |
| 38 | + steps: |
| 39 | + - name: Set up PHP |
| 40 | + uses: shivammathur/setup-php@v2 |
| 41 | + with: |
| 42 | + php-version: ${{ matrix.php }} |
| 43 | + coverage: 'none' |
| 44 | + |
| 45 | + - name: Checkout code |
| 46 | + uses: actions/checkout@v2 |
| 47 | + |
| 48 | + - name: Install dependencies |
| 49 | + run: composer update --no-interaction --prefer-stable --no-progress --prefer-dist |
| 50 | + |
| 51 | + - name: Run tests |
| 52 | + run: vendor/bin/simple-phpunit |
| 53 | + |
| 54 | + build-php8: |
| 55 | + name: Build (PHP 8) |
| 56 | + runs-on: ubuntu-latest |
| 57 | + |
| 58 | + steps: |
| 59 | + - name: Set up PHP |
| 60 | + uses: shivammathur/setup-php@v2 |
| 61 | + with: |
| 62 | + php-version: 8.0 |
| 63 | + coverage: 'none' |
| 64 | + |
| 65 | + - name: Checkout code |
| 66 | + uses: actions/checkout@v2 |
| 67 | + |
| 68 | + - name: Install dependencies |
| 69 | + run: composer update --no-interaction --no-progress --prefer-dist |
| 70 | + |
| 71 | + - name: Run tests |
| 72 | + run: vendor/bin/simple-phpunit |
0 commit comments