Skip to content

Commit dedbbd8

Browse files
Switch to actions
1 parent c258986 commit dedbbd8

File tree

4 files changed

+54
-140
lines changed

4 files changed

+54
-140
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/.gitattributes export-ignore
55
/.github export-ignore
66
/.gitignore export-ignore
7-
/.travis.yml export-ignore
87
/phpunit.xml.dist export-ignore
98
/CHANGELOG.md export-ignore
109
/README.md export-ignore

.github/workflows/tests.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 4 * * 1'
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php: [7.1, 7.2, 7.3, 7.4]
17+
laravel: [5.5, 5.6, 5.7, 5.8, 6]
18+
exclude:
19+
- php: 7.1
20+
laravel: 6
21+
22+
name: PHP ${{ matrix.php }}; Laravel ${{ matrix.laravel }}
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Pull Docker Image
27+
run: docker pull registry.gitlab.com/grahamcampbell/php:${{ matrix.php }}
28+
- name: Select Laravel 5.5
29+
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
30+
if: "matrix.laravel == 5.5"
31+
- name: Select Laravel 5.6
32+
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
33+
if: "matrix.laravel == 5.6"
34+
- name: Select Laravel 5.7
35+
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
36+
if: "matrix.laravel == 5.7"
37+
- name: Select Laravel 5.8
38+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:5.8.*" "phpunit/phpunit:^7.5|^8.5" --no-update -n
39+
if: "matrix.laravel == 5.8"
40+
- name: Select Laravel 6
41+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} require "laravel/framework:6.*" "phpunit/phpunit:^8.5|^9.0" --no-update -n
42+
if: "matrix.laravel == 6"
43+
- name: Run Composer
44+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} install --prefer-dist -n -o
45+
- name: Run PHPUnit
46+
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
47+
- name: Upload Coverage
48+
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

.travis.yml

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

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Laravel Exceptions was created by, and is maintained by [Graham Campbell](https:
66
![Banner](https://user-images.githubusercontent.com/2829600/71477346-60993680-27e1-11ea-881f-01ac5caaa169.png)
77

88
<p align="center">
9-
<a href="https://styleci.io/repos/26882182"><img src="https://styleci.io/repos/26882182/shield" alt="StyleCI Status"></img></a>
10-
<a href="https://travis-ci.org/GrahamCampbell/Laravel-Exceptions"><img src="https://img.shields.io/travis/GrahamCampbell/Laravel-Exceptions/master.svg?style=flat-square" alt="Build Status"></img></a>
11-
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Exceptions/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-Exceptions.svg?style=flat-square" alt="Coverage Status"></img></a>
12-
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Exceptions"><img src="https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-Exceptions.svg?style=flat-square" alt="Quality Score"></img></a>
13-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Software License"></img></a>
14-
<a href="https://github.com/GrahamCampbell/Laravel-Exceptions/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Laravel-Exceptions.svg?style=flat-square" alt="Latest Version"></img></a>
9+
<a href="https://github.styleci.io/repos/26882182"><img src="https://github.styleci.io/repos/26882182/shield" alt="StyleCI Status"></img></a>
10+
<a href="https://github.com/GrahamCampbell/Laravel-Exceptions/actions?query=workflow%3ATests"><img src="https://img.shields.io/github/workflow/status/GrahamCampbell/Laravel-Exceptions/Tests?style=flat-square" alt="Build Status"></img></a>
11+
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Exceptions/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-Exceptions?style=flat-square" alt="Coverage Status"></img></a>
12+
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Exceptions"><img src="https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-Exceptions?style=flat-square" alt="Quality Score"></img></a>
13+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen?style=flat-square" alt="Software License"></img></a>
14+
<a href="https://github.com/GrahamCampbell/Laravel-Exceptions/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Laravel-Exceptions?style=flat-square" alt="Latest Version"></img></a>
1515
</p>
1616

1717

0 commit comments

Comments
 (0)