blob: c4f275b99740cdfa89f02dda60b508b3ce4e3cae [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001name: Run tests
2
3on: [push, pull_request]
4
5jobs:
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