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
26 changes: 26 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHPUnit

on:
pull_request:
push:
branches:
- main

jobs:
phpunit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up php 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts

- name: Run PHPUnit
run: composer test
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Deploy PR previews

on: pull_request

concurrency: preview-${{ github.ref }}
concurrency:
group: site-preview-deploy
cancel-in-progress: false

jobs:
deploy-preview:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ npm-debug.log
/source/assets/compiled/
/source/assets/build/
/source/hot
/.phpunit.cache/

.env
docker-compose.override.yml
Expand Down
14 changes: 13 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@
"nesbot/carbon": "^3.3",
"samdark/sitemap": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^11.5"
},
"autoload": {
"psr-4": {
"App\\Listeners\\": "listeners"
"App\\Listeners\\": "listeners",
"App\\Support\\": "support/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -25,6 +34,9 @@
"dev": [
"npm run watch"
],
"test": [
"vendor/bin/phpunit --colors=always"
],
"prod": [
"npm run prod"
]
Expand Down
Loading
Loading