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

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
lint:
name: Pint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none

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

- name: Run Pint
run: ./vendor/bin/pint --test

tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

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

- name: Run tests
run: ./vendor/bin/pest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
vendor
mix-manifest.json
.vscode
composer.lock
.phpunit.cache
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.8.0
22
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ This addon supports GraphQL. You can access the hotspots data in your GraphQL qu
### Contributors:
- @Jade-GG - Added support support for arbitrary fieldtypes in the hotspot content.
- @emran-alhaddad - Added GraphQL support.
- @klickreflex - Fixed handling of global field references in the image_hot_spots tag.
19 changes: 18 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@
"Darinlarimore\\StatamicImagehotspots\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Darinlarimore\\StatamicImagehotspots\\Tests\\": "tests"
}
},
"require": {
"statamic/cms": "^5.0",
"php": "^8.2"
},
"require-dev": {
"laravel/pint": "^1.0",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^3.0",
"pestphp/pest-plugin-laravel": "^3.0"
},
"config": {
"allow-plugins": {
"pixelfear/composer-dist-plugin": true
"pixelfear/composer-dist-plugin": true,
"pestphp/pest-plugin": true
}
},
"extra": {
Expand All @@ -25,6 +37,11 @@
]
}
},
"scripts": {
"test": "pest",
"lint": "pint",
"lint:check": "pint --test"
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading