Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Travis CI to GitHub Actions #12

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests and analytics
on:
pull_request:
branches:
- 'master'
- 'develop'
- 'v*.*.*'

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php_version: [7.0, 7.1, 7.2]
coverage: [none, pcov]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup PHP with composer.
uses: shivammathur/[email protected]
with:
php-version: ${{matrix.php_version}}
tools: composer:v2
coverage: ${{matrix.coverage}} # XDebug disabled
- name: Install composer dependencies
run: |
cp phpunit.xml.dist phpunit.xml
composer install
composer update --prefer-lowest
composer require --dev phpstan/phpstan
- name: Run tests and analytics
run: |
vendor/phpunit/phpunit/phpunit -c phpunit.xml tests/
vendor/bin/phpstan analyse -l 1 lib/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"symfony/property-access": "^3.0|^4.0"
"symfony/property-access": "^3.0|^4.0|^5.0"
},
"require-dev": {
"doctrine/orm": "^2.4,>=2.4.5",
Expand Down