Skip to content

Commit

Permalink
Statamic 4 support (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen authored May 11, 2023
1 parent 756e214 commit a0d543c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
name: Run Tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
push:
pull_request:

jobs:
php-tests:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [8.1, 8.0]
laravel: [9.*, 8.*]
laravel: [10.*, 9.*]
dependency-version: [prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 8.*
testbench: 6.*
laravel-constraint: ^8.18.1
- laravel: 9.*
testbench: 7.*
laravel-constraint: ^8.18.1
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
Expand All @@ -41,5 +38,5 @@ jobs:
run: |
composer require "laravel/framework:${{ matrix.laravel-constraint || matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" ${{ matrix.additional-deps }} --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run PHPUnit
- name: Run PHPUnit tests
run: composer test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ You can access your failed jobs via the default artisan commands. Fx.:

## Requirements
- PHP >= 8.0
- Laravel 9
- Statamic >= 3.2
- Laravel 10 or 9
- Statamic 3 or 4

## Support
I love to share with the community. Nevertheless, it does take a lot of work, time and effort.
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
},
"require": {
"php": "^8.0",
"illuminate/support": "^9.0",
"statamic/cms": "3.3.* || 3.4.*"
"illuminate/support": "^10.0 || ^9.0",
"statamic/cms": "^4.0 || ^3.0"
},
"require-dev": {
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.3"
"orchestra/testbench": "^8.0 || ^7.0",
"phpunit/phpunit": "^10.1 || ^9.3"
},
"scripts": {
"test": "vendor/bin/phpunit",
Expand Down

0 comments on commit a0d543c

Please sign in to comment.