Skip to content

Commit

Permalink
Statamic 5 support (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
codedge authored Jul 1, 2024
1 parent af76888 commit ab0cd8b
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 9,615 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/composer-normalize.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/markdown-normalize.yml

This file was deleted.

19 changes: 6 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1']
laravel: [9.*, 10.*]
php: ['8.3']
laravel: [11.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 10.*
php: 8.0
testbench: [9.*]
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
uses: actions/checkout@v4.1.1

- name: Setup PHP
uses: shivammathur/setup-php@2.14.0
uses: shivammathur/setup-php@2.28.0
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, json, zip
Expand Down Expand Up @@ -52,7 +45,7 @@ jobs:
env:
APP_ENV: testing

- uses: codecov/codecov-action@v2.1.0
- uses: codecov/codecov-action@v3.1.4
name: Push coverage to codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
.phpunit.result.cache
composer.lock
composer.lock.bak
clover.xml
coverage/
node_modules/
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.3",
"ext-json": "*",
"statamic/cms": "^4.1"
"statamic/cms": "^5.0"
},
"require-dev": {
"nunomaduro/larastan": "^2.6",
"orchestra/testbench": "^7.32 | ^8.12",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^9.1",
"phpunit/phpunit": "^11.2"
},
"config": {
"process-timeout": 0,
Expand Down
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon

parameters:
level: 1
paths:
Expand Down
25 changes: 6 additions & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
cacheResult="false"
colors="true"
verbose="true"
convertErrorsToExceptions="false"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="true"
stopOnFailure="true"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd" bootstrap="vendor/autoload.php" backupGlobals="false" cacheResult="false" colors="true" processIsolation="true" stopOnFailure="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
Expand All @@ -32,4 +14,9 @@
<env name="QUEUE_DRIVER" value="sync"/>
<env name="MAIL_DRIVER" value="array"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit ab0cd8b

Please sign in to comment.