Skip to content

Commit

Permalink
Create main.yml (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Feb 9, 2020
1 parent ed98716 commit 2b5e5d6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,32 @@
name: CI

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

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [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 2b5e5d6

Please sign in to comment.