Skip to content

Commit

Permalink
update composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
harris21 committed Jul 23, 2024
1 parent 0e806ad commit ef9ecb4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 42 deletions.
75 changes: 37 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: CI
on:
push:
branches:
- '*'
- *
tags:
- '*'
- *
pull_request:
branches:
- '*'
- *

jobs:
build:
Expand All @@ -19,48 +19,47 @@ jobs:
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
laravel:
- 9.*
- 10.*
prefer:
- 'prefer-lowest'
- 'prefer-stable'
php: ['8.1', '8.2']
laravel: ['9.*', '10.*', '11.*']
prefer: [prefer-lowest, prefer-stable]
include:
- laravel: '9.*'
testbench: '7.*'
- laravel: '10.*'
testbench: '8.*'
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: '8.1'

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- 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
coverage: pcov
- 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
coverage: pcov

- uses: actions/cache@v3.0.5
name: Cache dependencies
with:
path: ~/.composer/cache/files
key: composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}
- uses: actions/cache@v3.0.5
name: Cache dependencies
with:
path: ~/.composer/cache/files
key: composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
- name: Run tests
run: |
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
- name: Run tests
run: |
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v3.1.0
with:
fail_ci_if_error: false
- uses: codecov/codecov-action@v3.1.0
with:
fail_ci_if_error: false
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
],
"require": {
"illuminate/http": "^9.35|^10.5",
"illuminate/support": "^9.35|^10.5",
"illuminate/http": "^9.35|^10.5|^11.0",
"illuminate/support": "^9.35|^10.5|^11.0",
"rennokki/laravel-sns-events": "^7.2"
},
"autoload": {
Expand All @@ -39,8 +39,8 @@
},
"require-dev": {
"mockery/mockery": "^1.5",
"orchestra/testbench": "^7.23|^8.1.1",
"phpunit/phpunit": "^9.5.25"
"orchestra/testbench": "^7.23|^8.1.1|^9.0",
"phpunit/phpunit": "^9.5.25|^10.5"
},
"config": {
"sort-packages": true
Expand Down

0 comments on commit ef9ecb4

Please sign in to comment.