Skip to content

Commit

Permalink
Merge pull request #685 from garak/github-actions
Browse files Browse the repository at this point in the history
move CI to Github Actions
  • Loading branch information
garak authored Dec 15, 2020
2 parents f7c7ff4 + 37d5e45 commit 5216d7c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 21 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.github export-ignore
.gitignore export-ignore
.php_cs export-ignore
.travis.yml export-ignore
CHANGELOG.md export-ignore
CODE_OF_CONDUCT.md export-ignore
CONTRIBUTING.md export-ignore
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
pull_request: ~
push: ~

jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
include:
- description: 'Symfony 4.4'
php: '7.3'
composer_option: '--prefer-lowest'
- description: 'Symfony 5.1'
php: '7.4'
symfony: 5.1.*
- description: 'Symfony 5.2'
php: '8.0'
symfony: 5.2.*
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/phpunit

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 5216d7c

Please sign in to comment.