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