Skip to content
Open
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.4
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none

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

- name: Run PHPUnit
run: ./vendor/bin/phpunit tests --colors=always
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"elaborate-code/jigsaw-localization": "dev-main",
"samdark/sitemap": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^12.5",
"mikey179/vfsstream": "^1.6"
},
"autoload": {
"psr-4": {
"App\\Listeners\\": "listeners"
Expand All @@ -22,6 +26,9 @@
"dev": [
"npm run watch"
],
"test": [
"vendor/bin/phpunit --colors=always"
],
"prod": [
"npm run prod"
]
Expand Down
Loading
Loading