mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Use Github Actions (#960)
* Use Github Actions * Fix PHP versions * Update run-tests.yml * Update run-tests.yml * Delete .travis.yml * Update run-tests.yml * Update composer.json * Update run-tests.yml * Update .github/workflows/run-tests.yml Co-authored-by: Markus Podar <[email protected]> * Update .github/workflows/run-tests.yml Co-authored-by: Markus Podar <[email protected]> Co-authored-by: Markus Podar <[email protected]>
This commit is contained in:
co-authored by
Markus Podar
parent
94948e4f2c
commit
3381123e71
@@ -0,0 +1,72 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
php-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php: [7.4, 7.3, 7.2]
|
||||||
|
laravel: [7.*]
|
||||||
|
testbench: [5.*]
|
||||||
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
include:
|
||||||
|
- laravel: 7.*
|
||||||
|
testbench: 5.*
|
||||||
|
php: 7.4
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
- laravel: 6.*
|
||||||
|
testbench: 4.*
|
||||||
|
php: 7.3
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
- laravel: 5.8.*
|
||||||
|
testbench: 3.8.*
|
||||||
|
php: 7.3
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
- laravel: 5.7.*
|
||||||
|
testbench: 3.7.*
|
||||||
|
php: 7.2
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
- laravel: 5.6.*
|
||||||
|
testbench: 3.6.*
|
||||||
|
php: 7.2
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
- laravel: 5.5.*
|
||||||
|
testbench: 3.5.*
|
||||||
|
php: 7.2
|
||||||
|
dependency-version: prefer-stable
|
||||||
|
exclude:
|
||||||
|
- laravel: 5.7.*
|
||||||
|
php: 7.4
|
||||||
|
- laravel: 5.6.*
|
||||||
|
php: 7.4
|
||||||
|
- laravel: 5.5.*
|
||||||
|
php: 7.4
|
||||||
|
|
||||||
|
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
coverage: none
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
composer remove phpro/grumphp --no-interaction --no-update --dev
|
||||||
|
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress
|
||||||
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
||||||
|
|
||||||
|
- name: Execute Unit Tests
|
||||||
|
run: vendor/bin/phpunit
|
||||||
|
|
||||||
|
- name: Check PSR-12 Codestyle
|
||||||
|
run: vendor/bin/phpcs --standard=psr2 src/
|
||||||
-67
@@ -1,67 +0,0 @@
|
|||||||
language: php
|
|
||||||
|
|
||||||
## Cache composer
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.composer/cache
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- RUN_PHPCS=0
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.2'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.3'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='5.5.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-lowest'
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='^6.0' COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1
|
|
||||||
- php: '7.4'
|
|
||||||
env: LARAVEL='^7.0' COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- phpenv config-rm xdebug.ini || true
|
|
||||||
|
|
||||||
install:
|
|
||||||
- travis_retry composer remove phpro/grumphp --no-interaction --no-update --dev
|
|
||||||
- composer require "illuminate/support:${LARAVEL}" --no-interaction --no-update
|
|
||||||
- composer require "illuminate/console:${LARAVEL}" --no-interaction --no-update
|
|
||||||
- composer require "illuminate/filesystem:${LARAVEL}" --no-interaction --no-update
|
|
||||||
- composer require --dev "illuminate/config:${LARAVEL}" --no-interaction --no-update
|
|
||||||
- composer require --dev "illuminate/view:${LARAVEL}" --no-interaction --no-update
|
|
||||||
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist --no-suggest
|
|
||||||
|
|
||||||
script:
|
|
||||||
- vendor/bin/phpunit
|
|
||||||
- if [[ $RUN_PHPCS = 1 ]]; then vendor/bin/phpcs --standard=psr2 src/; fi
|
|
||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
"mockery/mockery": "^1.3",
|
"mockery/mockery": "^1.3",
|
||||||
"orchestra/testbench": "^3 || ^4 || ^5",
|
"orchestra/testbench": "^3 || ^4 || ^5",
|
||||||
"phpro/grumphp": "^0.17.1",
|
"phpro/grumphp": "^0.17.1",
|
||||||
"squizlabs/php_codesniffer": "^3"
|
"squizlabs/php_codesniffer": "^3.5"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
|||||||
Reference in New Issue
Block a user