Skip to content

Commit

Permalink
Added Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Feb 14, 2022
1 parent 7b8d465 commit 0ab1646
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 74 deletions.
1 change: 0 additions & 1 deletion .codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/laravel-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
php: [ "7.3", "7.4", "8.0", "8.1" ]
laravel: [ "8.0" ]

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
name: PHP ${{ matrix.php }}

services:
mysql:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/laravel-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Laravel 9"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
laravel: [ "9.0" ]

name: PHP ${{ matrix.php }}

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: default
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, bcmath
coverage: none

- name: Store environment variables
run: |
echo "CASHIER_TINKOFF_QR_CLIENT_ID=${{ secrets.CASHIER_TINKOFF_QR_CLIENT_ID }}" >> .env
echo "CASHIER_TINKOFF_QR_CLIENT_SECRET=${{ secrets.CASHIER_TINKOFF_QR_CLIENT_SECRET }}" >> .env
- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }} --prefer-stable --prefer-dist --no-progress --no-interaction

- name: Execute tests
run: sudo vendor/bin/phpunit
env:
MYSQL_HOST: 127.0.0.1
67 changes: 0 additions & 67 deletions .styleci.yml

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
},
"require": {
"php": "^7.3 || ^8.0",
"cashier-provider/core": "^2.0",
"cashier-provider/tinkoff-auth": "^2.0",
"cashier-provider/core": "^2.5",
"cashier-provider/tinkoff-auth": "^2.1",
"psr/http-message": "^1.0"
},
"require-dev": {
"ext-json": "*",
"dragon-code/support": "^5.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^9.0",
"symfony/var-dumper": "^4.0 || ^5.0"
"symfony/var-dumper": "^4.0 || ^5.0 || ^6.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down

0 comments on commit 0ab1646

Please sign in to comment.