Skip to content

Commit a0565b7

Browse files
author
Liam Hammett
committed
Switch CI to GitHub Actions
1 parent cf37d1f commit a0565b7

File tree

2 files changed

+41
-43
lines changed

2 files changed

+41
-43
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Run Tests
2+
on: [push]
3+
4+
jobs:
5+
run:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
max-parallel: 15
9+
fail-fast: false
10+
matrix:
11+
php-versions: ["7.1", "7.2", "7.3", "7.4"]
12+
composer-flags: ["--prefer-lowest", "--prefer-stable"]
13+
env:
14+
- LARAVEL_VERSION='~5.5'
15+
- LARAVEL_VERSION='~5.6'
16+
- LARAVEL_VERSION='~5.7'
17+
- LARAVEL_VERSION='~5.8'
18+
- LARAVEL_VERSION='^6.0'
19+
- LARAVEL_VERSION='^7.0'
20+
exclude:
21+
- php-versions: 7.1
22+
env: LARAVEL_VERSION='^6.0'
23+
- php-versions: 7.1
24+
env: LARAVEL_VERSION='^7.0'
25+
name: Test on PHP ${{ matrix.php-versions }}, Laravel ${{ matrix.laravel-versions }} and ${{ matrix.composer-flags }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@master
29+
- name: Install PHP
30+
uses: shivammathur/setup-php@master
31+
with:
32+
php-version: ${{ matrix.php-versions }}
33+
- name: Install Dependencies
34+
run: |
35+
${{ matrix.env }}
36+
composer config discard-changes true
37+
composer self-update
38+
composer require --dev "laravel/framework:${LARAVEL_VERSION}" --no-interaction --no-update
39+
composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest --no-interaction
40+
- name: Run PHPUnit
41+
run: php vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)