Skip to content

Commit

Permalink
Move to GitHub actions (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk authored Sep 18, 2020
1 parent 286f17b commit a224ea7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: tests

on: [pull_request, push]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4]
laravel: [^8.0, ^7.0]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: ^7.0
testbench: ^5.0
- laravel: ^8.0
testbench: ^6.0

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

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

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

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

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[ico-php-version]: https://img.shields.io/packagist/php-v/mvdnbrk/warehouse-framework?style=flat-square
[ico-version]: https://img.shields.io/packagist/v/mvdnbrk/warehouse-framework.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-tests]: https://img.shields.io/travis/mvdnbrk/warehouse-framework/master.svg?style=flat-square
[ico-tests]: https://img.shields.io/github/workflow/status/mvdnbrk/warehouse-framework/tests/main?label=tests&style=flat-square
[ico-code-style]: https://styleci.io/repos/183472123/shield?branch=main
[ico-downloads]: https://img.shields.io/packagist/dt/mvdnbrk/warehouse-framework.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/mvdnbrk/warehouse-framework
[link-tests]: https://travis-ci.org/mvdnbrk/warehouse-framework
[link-tests]: https://github.com/mvdnbrk/warehouse-framework/actions?query=workflow%3Atests
[link-code-style]: https://styleci.io/repos/183472123
[link-downloads]: https://packagist.org/packages/mvdnbrk/warehouse-framework
[link-author]: https://github.com/mvdnbrk
Expand Down

0 comments on commit a224ea7

Please sign in to comment.