name: PHPUnit

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  phpunit:
    name: PHPUnit
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php:
        - '7.0'
        - '7.1'
        - '7.2'
        - '7.3'
        - '7.4'
    steps:
      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          coverage: none
          extensions: gmp, bcmath
          tools: composer
      - uses: actions/checkout@v2
      - run: composer install
      - run: vendor/bin/phpunit

Add PHPUnit GitHub Action workflow
Add PHPUnit GitHub Action workflow
