|
1 | 1 | name: Run tests |
2 | 2 |
|
| 3 | +permissions: |
| 4 | + contents: read |
| 5 | + |
3 | 6 | on: |
4 | 7 | push: |
5 | 8 | pull_request: |
6 | 9 | types: [opened, synchronize, reopened] |
7 | 10 |
|
8 | 11 | jobs: |
9 | | - test-php: |
10 | | - name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }} |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - continue-on-error: ${{ matrix.experimental }} |
13 | | - strategy: |
14 | | - matrix: |
15 | | - php-version: ["7.1.3", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] |
16 | | - experimental: [false] |
17 | | - os: [ubuntu-latest] |
18 | | - composer-options: [''] |
19 | | - include: |
20 | | - - { php-version: 'nightly', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest } |
21 | | - steps: |
22 | | - - uses: actions/checkout@v4 |
23 | | - - name: Use php ${{ matrix.php-version }} |
24 | | - uses: shivammathur/setup-php@v2 |
25 | | - with: |
26 | | - php-version: ${{ matrix.php-version }} |
27 | | - coverage: xdebug |
28 | | - - name: Cache module |
29 | | - uses: actions/cache@v3 |
30 | | - with: |
31 | | - path: ~/.composer/cache/ |
32 | | - key: composer-cache |
33 | | - - name: Install dependencies |
34 | | - run: composer install --no-interaction --prefer-dist --no-progress ${{ matrix.composer-options }} |
35 | | - - name: Run php tests |
36 | | - run: composer run test |
37 | | - - name: Send coverage |
38 | | - uses: codecov/codecov-action@v3 |
| 12 | + test-php: |
| 13 | + name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }} |
| 14 | + runs-on: ${{ matrix.os }} |
| 15 | + continue-on-error: ${{ matrix.experimental }} |
| 16 | + strategy: |
| 17 | + matrix: |
| 18 | + php-version: ["7.1.3", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"] |
| 19 | + experimental: [false] |
| 20 | + os: [ubuntu-latest] |
| 21 | + composer-options: [""] |
| 22 | + include: |
| 23 | + - { |
| 24 | + php-version: "nightly", |
| 25 | + composer-options: "--ignore-platform-req=php", |
| 26 | + experimental: true, |
| 27 | + os: ubuntu-latest, |
| 28 | + } |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v4 |
| 31 | + - name: Use php ${{ matrix.php-version }} |
| 32 | + uses: shivammathur/setup-php@v2 |
| 33 | + with: |
| 34 | + php-version: ${{ matrix.php-version }} |
| 35 | + coverage: xdebug |
| 36 | + - name: Cache module |
| 37 | + uses: actions/cache@v3 |
| 38 | + with: |
| 39 | + path: ~/.composer/cache/ |
| 40 | + key: composer-cache |
| 41 | + - name: Install dependencies |
| 42 | + run: composer install --no-interaction --prefer-dist --no-progress ${{ matrix.composer-options }} |
| 43 | + - name: Run php tests |
| 44 | + run: composer run test |
| 45 | + - name: Send coverage |
| 46 | + uses: codecov/codecov-action@v3 |
0 commit comments