Skip to content

Commit af09fd0

Browse files
authored
Add Laravel 8 Support (#22)
1 parent c731d93 commit af09fd0

File tree

8 files changed

+60
-98
lines changed

8 files changed

+60
-98
lines changed

.github/ISSUE_TEMPLATE.md

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
## Status
2-
<!-- **READY/WIP/HOLD** -->
3-
**READY/WIP/HOLD**
4-
51
## Description
62
A few sentences describing the overall goals of the pull request's commits.
73

8-
## Related PRs
9-
List related PRs against other branches:
10-
11-
branch | PR
12-
------ | ------
13-
other_pr_production | [link]()
14-
other_pr_master | [link]()
15-
164
## Todos
175
- [ ] Tests
186
- [ ] Documentation

.github/workflows/run-tests.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Run Tests
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: 0 0 * * *
7+
jobs:
8+
run-tests:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php:
14+
- 7.4
15+
- 7.3
16+
- 8.0
17+
laravel:
18+
- 8.*
19+
- 7.*
20+
dependency-version:
21+
- prefer-lowest
22+
- prefer-stable
23+
include:
24+
- laravel: 8.*
25+
testbench: 6.*
26+
- laravel: 7.*
27+
testbench: 5.*
28+
name: >-
29+
P${{ matrix.php }} - L${{ matrix.laravel }} - ${{
30+
matrix.dependency-version }}
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v1
34+
- name: Cache dependencies
35+
uses: actions/cache@v1
36+
with:
37+
path: ~/.composer/cache/files
38+
key: >-
39+
dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php
40+
}}-composer-${{ hashFiles('composer.json') }}
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: '${{ matrix.php }}'
45+
coverage: none
46+
- name: Install dependencies
47+
run: >
48+
composer require "laravel/framework:${{ matrix.laravel }}"
49+
"orchestra/testbench:${{ matrix.testbench }}" --no-interaction
50+
--no-update
51+
52+
composer update --${{ matrix.dependency-version }} --prefer-dist
53+
--no-interaction --no-suggest
54+
- name: Execute tests
55+
run: vendor/bin/phpunit
56+

.scrutinizer.yml

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

.travis.yml

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

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
[![Packagist Version](https://img.shields.io/packagist/v/sixlive/laravel-json-schema-assertions.svg?style=flat-square)](https://packagist.org/packages/sixlive/laravel-json-schema-assertions)
44
[![Packagist Downloads](https://img.shields.io/packagist/dt/sixlive/laravel-json-schema-assertions.svg?style=flat-square)](https://packagist.org/packages/sixlive/laravel-json-schema-assertions)
5-
[![Travis](https://img.shields.io/travis/sixlive/laravel-json-schema-assertions.svg?style=flat-square)](https://travis-ci.org/sixlive/laravel-json-schema-assertions)
6-
[![Code Quality](https://img.shields.io/scrutinizer/g/sixlive/laravel-json-schema-assertions.svg?style=flat-square)](https://scrutinizer-ci.com/g/sixlive/laravel-json-schema-assertions/)
7-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/sixlive/laravel-json-schema-assertions.svg?style=flat-square)](https://scrutinizer-ci.com/g/sixlive/laravel-json-schema-assertions/)
85
[![StyleCI](https://github.styleci.io/repos/139347110/shield)](https://github.styleci.io/repos/139347110)
96

107
JSON Schema schema assertions for Laravel test responses. Uses [swaggest/php-json-schema](https://github.com/swaggest/php-json-schema) under the hood.

bin/coverage

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

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">=7.2",
22+
"php": ">=7.2|^8.0",
2323
"phpunit/phpunit": "^8.0",
24-
"illuminate/support": "^7.0",
25-
"sixlive/json-schema-assertions": "^1.0"
24+
"illuminate/support": "^7.0|^8.0",
25+
"sixlive/json-schema-assertions": "^1.2"
2626
},
2727
"require-dev": {
2828
"friendsofphp/php-cs-fixer": "^2.12",
29-
"orchestra/testbench": "^5.0"
29+
"orchestra/testbench": "^5.0|^6.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)