Skip to content

Commit

Permalink
Move tests from travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChVuagniaux committed Nov 16, 2020
1 parent 16de4bb commit f20edf8
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 57 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- php: 7.4
laravel: ^8.0
testbench: ^6.0
- php: 7.4
laravel: ^7.0
testbench: ^5.0

- php: 7.3
laravel: ^8.0
testbench: ^6.0
- php: 7.3
laravel: ^7.0
testbench: ^5.0
- php: 7.3
laravel: ^6.0
testbench: ^4.0
- php: 7.3
laravel: 5.8.*
testbench: 3.8.*
- php: 7.3
laravel: 5.7.*
testbench: 3.7.*

- php: 7.2
laravel: ^7.0
testbench: ^5.0
- php: 7.2
laravel: ^6.0
testbench: ^4.0
- php: 7.2
laravel: 5.8.*
testbench: 3.8.*
- php: 7.2
laravel: 5.7.*
testbench: 3.7.*
- php: 7.2
laravel: 5.6.*
testbench: 3.6.*
- php: 7.2
laravel: 5.5.*
testbench: 3.5.*

- php: 7.1
laravel: 5.8.*
testbench: 3.8.*
- php: 7.1
laravel: 5.7.*
testbench: 3.7.*
- php: 7.1
laravel: 5.6.*
testbench: 3.6.*
- php: 7.1
laravel: 5.5.*
testbench: 3.5.*

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer require "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --verbose
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p align="center">
<a href="https://packagist.org/packages/1pilotapp/laravel-client"><img alt="Latest Version on Packagist" src="https://img.shields.io/packagist/v/1PilotApp/laravel-client.svg?style=flat-square"></a>
<a href="/1PilotApp/laravel-client/blob/master/LICENSE.md"><img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
<a href="https://travis-ci.org/1PilotApp/laravel-client"><img alt="Build Status" src="https://img.shields.io/travis/1PilotApp/laravel-client/master.svg?style=flat-square"></a>
<a href="https://github.com/1PilotApp/laravel-client/actions"><img alt="Build Status" src="https://img.shields.io/github/workflow/status/1PilotApp/laravel-client/tests?label=tests&style=flat-square"></a>
<a href="https://packagist.org/packages/1PilotApp/laravel-client"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/1pilotapp/laravel-client.svg?style=flat-square"></a>
</p>

Expand Down

0 comments on commit f20edf8

Please sign in to comment.