Skip to content

Commit

Permalink
Switched to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Apr 14, 2020
1 parent 0fa7369 commit 2337ad4
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 336 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Expand Up @@ -4,7 +4,6 @@
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/CHANGELOG.md export-ignore
/README.md export-ignore
61 changes: 61 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,61 @@
name: Tests

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

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
laravel: [5.5, 5.6, 5.7, 5.8, 6, 7]
httplug: [1, 2]
exclude:
- php: 7.1
laravel: 6
httplug: 1
- php: 7.1
laravel: 6
httplug: 2
- php: 7.1
laravel: 7
httplug: 1
- php: 7.1
laravel: 7
httplug: 2

name: PHP ${{ matrix.php }}; Laravel ${{ matrix.laravel }}; HTTPlug ${{ matrix.httplug }}

steps:
- uses: actions/checkout@v2
- name: Pull Docker Image
run: docker pull registry.gitlab.com/grahamcampbell/php:${{ matrix.php }}
- name: Select Laravel 5.5
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:5.5.*" "phpunit/phpunit:^6.5" --no-update -n
if: "matrix.laravel == 5.5"
- name: Select Laravel 5.6
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:5.6.*" "phpunit/phpunit:^7.5" --no-update -n
if: "matrix.laravel == 5.6"
- name: Select Laravel 5.7
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:5.7.*" "phpunit/phpunit:^7.5" --no-update -n
if: "matrix.laravel == 5.7"
- name: Select Laravel 5.8
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:${{ matrix.laravel }}.*" "phpunit/phpunit:^7.5|^8.5" --no-update -n
if: "matrix.laravel == 5.8"
- name: Select Laravel 6/7
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:${{ matrix.laravel }}.*" "phpunit/phpunit:^8.5|^9.0" --no-update -n
if: "matrix.laravel >= 6"
- name: Select HTTPlug
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "php-http/httplug:^${{ matrix.httplug }}" --no-update -n
- name: Run Composer
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} install --prefer-dist -n -o
- name: Run PHPUnit
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} --coverage-clover build/logs/clover.xml
- name: Upload Coverage
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint ocular registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} code-coverage:upload --format=php-clover build/logs/clover.xml
329 changes: 0 additions & 329 deletions .travis.yml

This file was deleted.

0 comments on commit 2337ad4

Please sign in to comment.