Skip to content

Commit

Permalink
Merge pull request #27 from Jean85/test-github-actions
Browse files Browse the repository at this point in the history
Complete GitHub actions
  • Loading branch information
Jean85 committed Sep 7, 2020
2 parents e33c057 + 5957cbd commit a3a78df
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
name: Tests

on:
pull_request: null
push:
branches:
- master
pull_request: null
push:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4']
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'

name: PHP ${{ matrix.php }} tests
steps:
# checkout git
- uses: actions/checkout@v2
name: PHP ${{ matrix.php }} tests
steps:
# checkout git
- uses: actions/checkout@v2

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

- run: composer install --no-progress --ansi
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
- run: composer install --no-progress --ansi
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v1
with:
file: './coverage.xml'
fail_ci_if_error: true

0 comments on commit a3a78df

Please sign in to comment.