Skip to content

Commit

Permalink
Add GitHub CI (#79)
Browse files Browse the repository at this point in the history
* Create main.yml

* Update main.yml
  • Loading branch information
sanmai committed Feb 9, 2020
1 parent 319933c commit f23f9a4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,33 @@
name: CI

on:
pull_request:
push:
branches:
- v*.*

jobs:

tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-suggest --no-progress

- name: Execute tests
run: php vendor/bin/phpunit

0 comments on commit f23f9a4

Please sign in to comment.