aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
blob: 61985342f95f331e54508177c2bd0b22be92c32d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  phpunit7:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        php-versions: ['7.1', '7.2', '7.3']
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
      - run: composer global require phpunit/phpunit ^7
      - run: phpunit --configuration=phpunit.xml --include-path=lib/

  phpunit8:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        php-versions: ['7.3', '7.4', '8.0', '8.1']
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
      - run: composer global require phpunit/phpunit ^8
      - run: phpunit --configuration=phpunit.xml --include-path=lib/