Skip to content

Commit 7fc21da

Browse files
authored
Fix labels not showing within view + Tests
* Gather view data like statamic does in form emails * Add basic tests * Add Github Actions
1 parent ccb6bda commit 7fc21da

File tree

13 files changed

+2243
-1882
lines changed

13 files changed

+2243
-1882
lines changed

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test Suite
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
php_tests:
9+
if: "!contains(github.event.head_commit.message, 'changelog')"
10+
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
php: [8.2, 8.3]
16+
os: [ubuntu-latest]
17+
18+
name: ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
tools: composer:v2
29+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
30+
31+
- name: Install dependencies
32+
run: |
33+
composer install --no-interaction
34+
35+
- name: Run Pest
36+
run: vendor/bin/pest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
vendor
33
mix-manifest.json
4+
.phpunit.cache

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
}
1212
},
1313
"require": {
14-
"statamic/cms": "^5.0"
14+
"statamic/cms": "^5.0",
15+
"laravel/pint": "^1.18"
1516
},
1617
"require-dev": {
17-
"orchestra/testbench": "^9.0"
18+
"orchestra/testbench": "^9.0",
19+
"pestphp/pest": "^2.36"
1820
},
1921
"config": {
2022
"allow-plugins": {
21-
"pixelfear/composer-dist-plugin": true
23+
"pixelfear/composer-dist-plugin": true,
24+
"pestphp/pest-plugin": true
2225
}
2326
},
2427
"extra": {

0 commit comments

Comments
 (0)