Skip to content

Commit 7e3401d

Browse files
feat: add support for Statamic 4 (#3)
* feat: add support for Statamic 4 * chore(ci): update tests workflow * chore(ci): replace `composer install` with `composer update` * chore(deps): upgrade `orchestra/testbench` to `^7.0|^8.0`
1 parent 7ae833c commit 7e3401d

File tree

3 files changed

+747
-819
lines changed

3 files changed

+747
-819
lines changed

.github/workflows/tests.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
- '*.x'
88
pull_request:
9+
schedule:
10+
- cron: '0 0 * * *'
911

1012
jobs:
1113
tests:
@@ -15,9 +17,12 @@ jobs:
1517
fail-fast: true
1618
matrix:
1719
php: [8.1, 8.2]
18-
laravel: [9.*]
19-
statamic: [^3.3, ^3.4]
20+
laravel: [9.*, 10.*]
21+
statamic: [^3.4, ^4]
2022
os: [ubuntu-latest]
23+
exclude:
24+
- laravel: 10.*
25+
statamic: ^3.4
2126

2227
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Statamic ${{ matrix.statamic }}
2328

@@ -34,7 +39,7 @@ jobs:
3439
- name: Install dependencies
3540
run: |
3641
composer require "laravel/framework:${{ matrix.laravel }}" "statamic/cms:${{ matrix.statamic }}" --prefer-dist --no-interaction --no-update
37-
composer install --prefer-dist --no-interaction
42+
composer update --prefer-dist --no-interaction --no-progress
3843
3944
- name: Lint
4045
run: composer lint -- --test

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"require": {
2727
"php": "^8.1 || ^8.2",
2828
"blade-ui-kit/blade-heroicons": "^2.1",
29-
"statamic/cms": "3.4.x"
29+
"statamic/cms": "^3.4 || ^4"
3030
},
3131
"require-dev": {
3232
"facade/ignition-contracts": "^1.0",
3333
"laravel/pint": "^1.5",
3434
"nunomaduro/collision": "^4.2 || ^5.0 || ^6.1",
35-
"orchestra/testbench": "^7"
35+
"orchestra/testbench": "^7.0 || ^8.0"
3636
},
3737
"scripts": {
3838
"lint": [

0 commit comments

Comments
 (0)