Skip to content

Commit

Permalink
Merge pull request #7 from cashier-provider/2.x
Browse files Browse the repository at this point in the history
Added testing with PHP 8.1
  • Loading branch information
Andrey Helldar committed Nov 29, 2021
2 parents d9c207e + 2381a22 commit 2227145
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,42 @@ name: phpunit
on: [ push ]

jobs:
build:
old:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "6.0", "7.0", "8.0" ]
laravel: [ "6.0", "7.0" ]

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

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: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit

new:
runs-on: ubuntu-latest

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

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

Expand Down

0 comments on commit 2227145

Please sign in to comment.