-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
263 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Latest | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
matrix-build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php-version: [7.4, 8.0] | ||
laravel-version: [8.28] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: Composer update | ||
run: composer self-update >/dev/null 2>&1 | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Lock laravel/framework version | ||
env: | ||
LARAVEL_VERSION: ${{ matrix.laravel-version }} | ||
run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update | ||
|
||
- name: Vendor update | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer update --prefer-source --no-interaction | ||
|
||
- name: Run test suites | ||
run: composer run-script test | ||
|
||
- name: Analyze | ||
run: vendor/bin/phpstan analyse -c phpstan.neon ./src/ | ||
|
||
- name: phpcs | ||
run: php vendor/bin/phpcs --standard=PSR12 ./src/ | ||
|
||
- name: Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: php vendor/bin/php-coveralls -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: PHP7 | ||
|
||
# Manual run | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
matrix-build: | ||
# Ubuntu latest will be ubuntu-20.04 which doesn't support php 7.3 | ||
runs-on: ubuntu-18.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [7.3] | ||
laravel-version: | ||
[ | ||
6.2, | ||
6.4, | ||
6.5, | ||
6.8, | ||
6.12, | ||
6.18, | ||
6.19, | ||
6.20.0, | ||
7.0, | ||
7.3, | ||
7.6, | ||
7.12, | ||
7.25, | ||
7.28, | ||
7.29, | ||
7.30.1, | ||
8.0, | ||
8.12, | ||
8.13, | ||
8.14, | ||
8.15, | ||
8.16, | ||
8.17, | ||
8.18, | ||
8.19, | ||
8.20.1, | ||
8.21, | ||
8.22, | ||
8.23, | ||
8.24, | ||
8.25, | ||
8.26, | ||
8.27, | ||
8.28, | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: Composer update | ||
run: composer self-update >/dev/null 2>&1 | ||
|
||
- name: Lock laravel/framework version | ||
env: | ||
LARAVEL_VERSION: ${{ matrix.laravel-version }} | ||
run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update | ||
|
||
- name: Vendor update | ||
run: composer update --prefer-source --no-interaction | ||
|
||
- name: Run test suites | ||
run: composer run-script test | ||
|
||
- name: Analyze | ||
run: vendor/bin/phpstan analyse -c phpstan.neon ./src/ | ||
|
||
- name: phpcs | ||
run: php vendor/bin/phpcs --standard=PSR12 ./src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: PHP8 | ||
|
||
# Manual run | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
matrix-build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [8.0] | ||
# these versions supports php8 in their composer.json | ||
laravel-version: | ||
[ | ||
6.20.0, | ||
7.29, | ||
7.30.1, | ||
8.12, | ||
8.13, | ||
8.14, | ||
8.15, | ||
8.16, | ||
8.17, | ||
8.18, | ||
8.19, | ||
8.20.1, | ||
8.21, | ||
8.22, | ||
8.23, | ||
8.24, | ||
8.25, | ||
8.26, | ||
8.27, | ||
8.28, | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: Composer update | ||
run: composer self-update >/dev/null 2>&1 | ||
|
||
- name: Lock laravel/framework version | ||
env: | ||
LARAVEL_VERSION: ${{ matrix.laravel-version }} | ||
run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update | ||
|
||
- name: Vendor update | ||
run: composer update --prefer-source --no-interaction | ||
|
||
- name: Run test suites | ||
run: composer run-script test | ||
|
||
- name: Analyze | ||
run: vendor/bin/phpstan analyse -c phpstan.neon ./src/ | ||
|
||
- name: phpcs | ||
run: php vendor/bin/phpcs --standard=PSR12 ./src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,23 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/mustangostang/spyc" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.2", | ||
"php": "^7.2 || ^8.0", | ||
"ua-parser/uap-php": "~3.9", | ||
"league/pipeline": "^1.0", | ||
"mobiledetect/mobiledetectlib": "~2.8", | ||
"jaybizzle/crawler-detect": "~1.2", | ||
"matomo/device-detector": "^4.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~5.0 || ~6.0 || ~7.0 || ~8.0", | ||
"orchestra/testbench": "~4.0 || ~5.0", | ||
"phpunit/phpunit": "~5.0 || ~6.0 || ~7.0 || ~8.0 || ~9.0", | ||
"orchestra/testbench": "~4.0 || ~5.0 || ~6.0", | ||
"php-coveralls/php-coveralls": "~1.0 || ~2.0", | ||
"squizlabs/php_codesniffer": "^3.5", | ||
"phpstan/phpstan": "^0.12.11" | ||
|
@@ -62,4 +68,4 @@ | |
"test-dev": "phpunit --coverage-text", | ||
"test": "phpunit --coverage-clover ./tests/logs/clover.xml" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.