mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 12:14:03 +00:00
First try at Laravel 8 support + more advanced CI
This commit is contained in:
parent
31e07d6176
commit
02b0c4b6c9
4 changed files with 49 additions and 5100 deletions
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
|
|
@ -1,16 +1,47 @@
|
||||||
name: CI
|
name: run-tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
php: [7.3, 7.4]
|
||||||
|
laravel: [6.*, 7.*, 8.*]
|
||||||
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
include:
|
||||||
|
- laravel: 8.*
|
||||||
|
testbench: 6.*
|
||||||
|
- laravel: 7.*
|
||||||
|
testbench: 5.*
|
||||||
|
- laravel: 6.*
|
||||||
|
testbench: 4.*
|
||||||
|
|
||||||
|
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.composer/cache/files
|
||||||
|
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
|
||||||
|
coverage: none
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install
|
run: |
|
||||||
- name: Start Redis
|
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
||||||
uses: supercharge/redis-github-action@1.1.0
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
||||||
- name: Run tests
|
- name: Execute tests
|
||||||
run: phpunit
|
run: vendor/bin/phpunit
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
/vendor/
|
/vendor/
|
||||||
|
composer.lock
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"illuminate/support": "^6.0|^7.11"
|
"illuminate/support": "^6.0|^7.11|^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "^4.0|^5.2",
|
"orchestra/testbench": "^4.0|^5.2|^6.0",
|
||||||
"spatie/valuestore": "^1.2",
|
"spatie/valuestore": "^1.2",
|
||||||
"ext-redis": "*"
|
"ext-redis": "*"
|
||||||
}
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5085
composer.lock
generated
5085
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue