|
1 | 1 | name: PHPUnit tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - - push |
5 | | - - pull_request |
| 4 | + - push |
| 5 | + - pull_request |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - tests: |
9 | | - runs-on: ubuntu-latest |
10 | | - strategy: |
11 | | - fail-fast: true |
12 | | - matrix: |
13 | | - os: [ubuntu-latest, windows-latest] |
14 | | - php: [8.1, 8.0] |
15 | | - stability: [prefer-lowest, prefer-stable] |
16 | | - |
17 | | - name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} |
18 | | - |
19 | | - steps: |
20 | | - - name: Checkout code |
21 | | - uses: actions/checkout@v2 |
22 | | - |
23 | | - - name: Setup PHP |
24 | | - uses: shivammathur/setup-php@v2 |
25 | | - with: |
26 | | - php-version: ${{ matrix.php }} |
27 | | - tools: composer:v2 |
28 | | - coverage: none |
29 | | - |
30 | | - - name: Setup problem matchers |
31 | | - run: | |
32 | | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
33 | | - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
34 | | -
|
35 | | - - name: Install dependencies |
36 | | - run: | |
37 | | - composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
38 | | -
|
39 | | - - name: Execute tests |
40 | | - run: vendor/bin/phpunit |
41 | | - env: |
42 | | - GOOGLE_CHAT_TEST_SPACE: ${{ secrets.GOOGLE_CHAT_TEST_SPACE }} |
| 8 | + tests: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + fail-fast: true |
| 12 | + matrix: |
| 13 | + os: [ubuntu-latest, windows-latest] |
| 14 | + php: [8.2, 8.1] |
| 15 | + stability: [prefer-lowest, prefer-stable] |
| 16 | + |
| 17 | + name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} |
| 18 | + |
| 19 | + steps: |
| 20 | + - name: Checkout code |
| 21 | + uses: actions/checkout@v2 |
| 22 | + |
| 23 | + - name: Setup PHP |
| 24 | + uses: shivammathur/setup-php@v2 |
| 25 | + with: |
| 26 | + php-version: ${{ matrix.php }} |
| 27 | + tools: composer:v2 |
| 28 | + coverage: none |
| 29 | + |
| 30 | + - name: Setup problem matchers |
| 31 | + run: | |
| 32 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 33 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 34 | +
|
| 35 | + - name: Install dependencies |
| 36 | + run: | |
| 37 | + composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
| 38 | +
|
| 39 | + - name: Execute tests |
| 40 | + run: vendor/bin/phpunit |
| 41 | + env: |
| 42 | + GOOGLE_CHAT_TEST_SPACE: ${{ secrets.GOOGLE_CHAT_TEST_SPACE }} |
0 commit comments