Skip to content

Migrate the tests from Travis CI to GitHub Actions #1

Migrate the tests from Travis CI to GitHub Actions

Migrate the tests from Travis CI to GitHub Actions #1

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [7.1, 7.2, 7.3, 7.4]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer install --prefer-source --no-interaction --dev
- name: Run tests
run: vendor/bin/phpunit