| 1234567891011121314151617181920212223242526272829303132333435 |
- name: PHPUnit
- on:
- push:
- branches:
- - master
- pull_request:
- jobs:
- phpunit:
- name: PHPUnit
- runs-on: ubuntu-latest
- strategy:
- matrix:
- php:
- - '7.1'
- - '7.2'
- - '7.3'
- - '7.4'
- - '8.0'
- - '8.1'
- steps:
- - uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- coverage: none
- extensions: gmp, bcmath
- tools: composer
- - uses: actions/checkout@v2
- - name: Setup problem matchers
- run: |
- echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- - run: composer install
- - run: vendor/bin/phpunit
|