Skip to content

Commit

Permalink
chore: github actions ci (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
atymic authored Nov 7, 2019
1 parent db54815 commit 16bf63c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PHP

on: [push]

jobs:
run:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
laravel-version: ['5.8.*', '^6.0']
stabilty: ['stable', 'lowest']
php-versions: ['7.2', '7.3']
name: PHP ${{ matrix.php-versions }} on ${{ matrix.laravel-version }} (${{ matrix.stabilty }})
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extension-csv: mbstring, xdebug
coverage: xdebug
- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}"
composer update --prefer-${{ matrix.stabilty }} --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate
- name: Run Tests
run: composer test:ci
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
"Thujohn\\Twitter": "src/"
}
},
"scripts": {
"test": "phpunit",
"test:ci": "phpunit --verbose --coverage-clover=coverage.xml"
},
"extra": {
"laravel": {
"providers": [
Expand Down

0 comments on commit 16bf63c

Please sign in to comment.