Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | name: Run tests |
| 2 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 3 | on: |
| 4 | push: |
| 5 | branches: [laravel-9-ongoing, laravel-8-ongoing] |
| 6 | pull_request: |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 7 | |
| 8 | jobs: |
| 9 | tests: |
| 10 | strategy: |
| 11 | matrix: |
| 12 | os: [Ubuntu, macOS] |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 13 | php: [7.3, 7.4, 8.0, 8.1] |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 14 | |
| 15 | include: |
| 16 | - os: Ubuntu |
| 17 | os-version: ubuntu-latest |
| 18 | |
| 19 | - os: macOS |
| 20 | os-version: macos-latest |
| 21 | |
| 22 | name: ${{ matrix.os }} - PHP ${{ matrix.php }} |
| 23 | |
| 24 | runs-on: ${{ matrix.os-version }} |
| 25 | |
| 26 | steps: |
| 27 | - name: Checkout code |
| 28 | uses: actions/checkout@v1 |
| 29 | |
| 30 | - name: Setup PHP |
| 31 | uses: shivammathur/setup-php@v2 |
| 32 | with: |
| 33 | php-version: ${{ matrix.php }} |
| 34 | extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
| 35 | coverage: none |
| 36 | |
| 37 | - name: Install dependencies |
| 38 | run: composer update --prefer-stable --prefer-dist --no-interaction |
| 39 | |
| 40 | - name: Run tests |
| 41 | run: bash upgrade.sh |