|
1 | 1 | name: Build |
2 | 2 | on: |
3 | | - push: |
4 | | - branches: |
5 | | - - master |
6 | | - pull_request: |
7 | | - branches: |
8 | | - - master |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + pull_request: |
| 7 | + branches: |
| 8 | + - master |
9 | 9 | jobs: |
10 | | - build: |
11 | | - name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} |
12 | | - strategy: |
13 | | - fail-fast: false |
14 | | - matrix: |
15 | | - operating-system: [ubuntu-latest] |
16 | | - php-versions: ['7.4', '8.0', '8.1', '8.2'] |
17 | | - composer-args: ['', '--prefer-lowest'] |
18 | | - runs-on: ${{ matrix.operating-system }} |
19 | | - steps: |
20 | | - - name: Checkout |
21 | | - |
22 | | - - name: Setup PHP |
23 | | - uses: shivammathur/setup-php@v2 |
24 | | - with: |
25 | | - php-version: ${{ matrix.php-versions }} |
26 | | - extensions: mbstring, apcu |
27 | | - ini-values: apc.enable_cli=1 |
28 | | - coverage: xdebug |
29 | | - - name: Install Dependencies |
30 | | - run: | |
31 | | - composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} |
32 | | - - name: Static Analysis |
33 | | - run: | |
34 | | - composer phpstan |
35 | | - composer psalm -- --shepherd |
36 | | - - name: Code Style Check |
37 | | - env: |
38 | | - PHP_CS_FIXER_IGNORE_ENV: true |
39 | | - run: composer style-check |
40 | | - - name: Test |
41 | | - run: composer test-with-coverage |
42 | | - - name: Upload Coverage |
43 | | - uses: codecov/codecov-action@v3 |
44 | | - with: |
45 | | - files: ./tests/coverage/clover.xml |
46 | | - verbose: true |
| 10 | + build: |
| 11 | + name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + operating-system: [ubuntu-latest] |
| 16 | + php-versions: ["7.4", "8.0", "8.1", "8.2"] |
| 17 | + composer-args: ["", "--prefer-lowest"] |
| 18 | + runs-on: ${{ matrix.operating-system }} |
| 19 | + steps: |
| 20 | + - name: Checkout |
| 21 | + |
| 22 | + - name: Setup PHP |
| 23 | + uses: shivammathur/setup-php@v2 |
| 24 | + with: |
| 25 | + php-version: ${{ matrix.php-versions }} |
| 26 | + extensions: mbstring, apcu |
| 27 | + ini-values: apc.enable_cli=1 |
| 28 | + coverage: xdebug |
| 29 | + - name: Install Dependencies |
| 30 | + run: | |
| 31 | + composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} |
| 32 | + - name: Static Analysis |
| 33 | + run: | |
| 34 | + composer phpstan |
| 35 | + composer psalm -- --shepherd |
| 36 | + - name: Code Style Check |
| 37 | + env: |
| 38 | + PHP_CS_FIXER_IGNORE_ENV: true |
| 39 | + run: composer style-check |
| 40 | + - name: Test |
| 41 | + run: composer test-with-coverage |
| 42 | + - name: Upload Coverage |
| 43 | + uses: codecov/codecov-action@v4 |
| 44 | + env: |
| 45 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 46 | + with: |
| 47 | + files: ./tests/coverage/clover.xml |
| 48 | + verbose: true |
0 commit comments