Skip to content

Commit 33bfec0

Browse files
authored
feat(OA-141): Laravel support til version 10 (#26)
* Moved to github actions * removed composer.lock from vcs * updated dependencies and fixed tests * migrated phpunit.xml * updtaed config with coverage settings * using matrix * updated name * restricting versions of laravel
1 parent 2a078d3 commit 33bfec0

File tree

9 files changed

+93
-2957
lines changed

9 files changed

+93
-2957
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run-tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ 7.4, 8.1 ]
12+
include:
13+
- php: 7.4
14+
laravel: 6.20
15+
- php: 8.1
16+
laravel: 10.14
17+
18+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
19+
steps:
20+
- name: Checkout Code
21+
uses: actions/checkout@v3
22+
23+
- name: Install dependencies
24+
uses: php-actions/composer@v6
25+
with:
26+
php_version: "${{ matrix.php }}"
27+
28+
- name: Force Laravel version
29+
run: composer require illuminate/view:${{ matrix.laravel }} --no-interaction --no-update
30+
31+
- name: PHPUnit tests
32+
uses: php-actions/phpunit@v3
33+
env:
34+
XDEBUG_MODE: coverage
35+
with:
36+
version: ${{ matrix.php == 7.4 && '9' || 'latest'}}
37+
php_version: "${{ matrix.php }}"
38+
bootstrap: vendor/autoload.php
39+
configuration: phpunit.xml.dist
40+
php_extensions: xdebug
41+
args: tests --coverage-clover ./coverage.xml
42+
43+
- name: Coverage Report as Comment (Clover)
44+
uses: lucassabreu/comment-coverage-clover@main
45+
with:
46+
file: coverage.xml

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
.idea
2+
.phpunit.result.cache
3+
.phpunit.cache
14
/node_modules/
25
/vendor/
6+
composer.lock
7+
coverage.xml

.travis.yml

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

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Form Components
22

3-
[![Build Status](https://travis-ci.org/Pod-Point/form-components.svg?branch=master)](https://travis-ci.org/Pod-Point/form-components)
4-
53
Commonly used form components to make it easier and more flexible to create forms in [Blade](https://laravel.com/docs/master/blade) views.
64

75
It is intended to be usable by anyone.

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
"keywords": ["php", "laravel", "blade", "form", "components"],
55
"type": "library",
66
"require": {
7-
"php": ">=7.0.0",
8-
"illuminate/view": "^5.3"
9-
},
10-
"require-dev": {
11-
"phpunit/phpunit": "^5.3"
7+
"php": "^7.4 || ^8.1",
8+
"ext-dom": "*",
9+
"illuminate/view": "^6.20 || ^7.30 || ^8.83 || ^9.52 || ^10.14"
1210
},
1311
"license": "MIT",
1412
"authors": [
@@ -26,5 +24,8 @@
2624
"psr-4": {
2725
"PodPoint\\FormComponents\\Tests\\": "tests/src/"
2826
}
27+
},
28+
"require-dev": {
29+
"phpunit/phpunit": "^9.6"
2930
}
3031
}

0 commit comments

Comments
 (0)