Skip to content

Commit

Permalink
feat: add support for Statamic 4 (#3)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
stefangalescu authored May 9, 2023
1 parent 7ae833c commit 7e3401d
Show file tree
Hide file tree
Showing 3 changed files with 747 additions and 819 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
Expand All @@ -15,9 +17,12 @@ jobs:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [9.*]
statamic: [^3.3, ^3.4]
laravel: [9.*, 10.*]
statamic: [^3.4, ^4]
os: [ubuntu-latest]
exclude:
- laravel: 10.*
statamic: ^3.4

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

Expand All @@ -34,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "statamic/cms:${{ matrix.statamic }}" --prefer-dist --no-interaction --no-update
composer install --prefer-dist --no-interaction
composer update --prefer-dist --no-interaction --no-progress
- name: Lint
run: composer lint -- --test
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"require": {
"php": "^8.1 || ^8.2",
"blade-ui-kit/blade-heroicons": "^2.1",
"statamic/cms": "3.4.x"
"statamic/cms": "^3.4 || ^4"
},
"require-dev": {
"facade/ignition-contracts": "^1.0",
"laravel/pint": "^1.5",
"nunomaduro/collision": "^4.2 || ^5.0 || ^6.1",
"orchestra/testbench": "^7"
"orchestra/testbench": "^7.0 || ^8.0"
},
"scripts": {
"lint": [
Expand Down
Loading

0 comments on commit 7e3401d

Please sign in to comment.