Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from avvertix/improve-ci-tests
Browse files Browse the repository at this point in the history
Use GitHub Actions for all tests
  • Loading branch information
avvertix authored Apr 26, 2020
2 parents 2cc5981 + 53d4dc4 commit 2f1a7a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2,485 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,37 @@ on:

jobs:
phpunit:
name: Test on laravel ${{ matrix.laravel }}
name: Tests PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4]
laravel: ["6.0" , "6.*", "7.0", "7.*"]

container:
image: jackmdavis97/php:7.3

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set Laravel version

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

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

- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" --no-update
composer require "illuminate/filesystem:${{ matrix.laravel }}" --no-update
- name: Composer update
run: composer update --no-interaction --no-progress --no-suggest --prefer-dist
composer require "illuminate/filesystem:${{ matrix.laravel }}" --prefer-dist --no-interaction
- name: Run Testsuite
run: ./vendor/bin/phpunit
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 2f1a7a8

Please sign in to comment.