1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 15:34:04 +00:00

Merge pull request #4 from andresayej/l8-test

First try at Laravel 8 support + more advanced CI
This commit is contained in:
Samuel Štancl 2020-09-08 18:48:35 +02:00 committed by GitHub
commit 8fcac74f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 5100 deletions

View file

@ -1,16 +1,48 @@
name: CI
name: run-tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-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:
- uses: actions/checkout@v2
- name: Install dependencies
run: composer install
- 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: Start Redis
uses: supercharge/redis-github-action@1.1.0
- name: Run tests
run: phpunit
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit

1
.gitignore vendored
View file

@ -1 +1,2 @@
/vendor/
composer.lock

View file

@ -19,11 +19,13 @@
}
},
"require": {
"illuminate/support": "^6.0|^7.11"
"illuminate/support": "^6.0|^7.11|^8.0"
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.2",
"orchestra/testbench": "^4.0|^5.2|^6.0",
"spatie/valuestore": "^1.2",
"ext-redis": "*"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

5085
composer.lock generated

File diff suppressed because it is too large Load diff