Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Suite

on:
push:
pull_request:

jobs:
php_tests:
if: "!contains(github.event.head_commit.message, 'changelog')"

runs-on: ${{ matrix.os }}

strategy:
matrix:
php: [8.2, 8.3]
os: [ubuntu-latest]

name: ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick

- name: Install dependencies
run: |
composer install --no-interaction

- name: Run Pest
run: vendor/bin/pest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
vendor
mix-manifest.json
.phpunit.cache
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
}
},
"require": {
"statamic/cms": "^5.0"
"statamic/cms": "^5.0",
"laravel/pint": "^1.18"
},
"require-dev": {
"orchestra/testbench": "^9.0"
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.36"
},
"config": {
"allow-plugins": {
"pixelfear/composer-dist-plugin": true
"pixelfear/composer-dist-plugin": true,
"pestphp/pest-plugin": true
}
},
"extra": {
Expand Down
Loading