Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
remove modifications to php.yml, create php8.yml, change requirement …
Browse files Browse the repository at this point in the history
…in composer
  • Loading branch information
ildyria committed Dec 10, 2020
1 parent 9d501ad commit ac4dead
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
php: [7.4, 7.3, 8.0]
php: [7.4, 7.3]
laravel: [8.*]
dependency-version: [--prefer-lowest, --prefer-stable]
# dependency-version: [prefer-lowest, prefer-stable]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
Expand Down Expand Up @@ -42,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-progress --no-update
composer update ${{ matrix.dependency-version }} --prefer-dist --no-progress
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
- name: Run Tests
run: composer run-script test
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/php8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: PHP Composer

on:
push:
pull_request:

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0]
laravel: [8.*]
dependency-version: [--prefer-lowest, --prefer-stable]
include:
- laravel: 8.*
testbench: 6.*

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-progress --no-update
composer update ${{ matrix.dependency-version }} --prefer-dist --no-progress
- name: Run Tests
run: composer run-script test

- name: Upload Coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
rm -rf composer.* vendor/
composer require cedx/coveralls
vendor/bin/coveralls build/logs/clover.xml
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"php": "^7.3.0 || ^8.0",
"ext-json": "*",
"illuminate/support": "^8.0",
"web-auth/webauthn-lib": "^3.3@dev",
"web-auth/webauthn-lib": "^3.2",
"symfony/psr-http-message-bridge": "^2.0",
"ramsey/uuid": "^4.0",
"nyholm/psr7": "^1.3"
},
"minimum-stability": "dev",
"require-dev": {
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^8.5||^9.0"
Expand Down

0 comments on commit ac4dead

Please sign in to comment.