Skip to content

Commit a1ecc47

Browse files
aarondfrancisclaude
andcommitted
Update CI and tooling to current best practices
- Add PHP 8.4 to test matrix - Remove unused MySQL service from tests workflow - Add laravel/pint as dev dependency - Update style workflow to use local pint instead of global install - Rename test suite from placeholder "TBD" to "Airdrop" - Remove legacy test script (referenced Laravel 7/8) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 32ec1d5 commit a1ecc47

File tree

5 files changed

+8
-41
lines changed

5 files changed

+8
-41
lines changed

.github/workflows/style.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: "8.3"
21+
php-version: "8.4"
2222
extensions: json, dom, curl, libxml, mbstring
2323
coverage: none
2424

25-
- name: Install Pint
26-
run: composer global require laravel/pint
25+
- name: Install dependencies
26+
run: composer install --no-interaction --prefer-dist
2727

2828
- name: Run Pint
29-
run: pint
29+
run: vendor/bin/pint
3030

3131
- name: Commit linted files
3232
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/tests.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
php: [ 8.1, 8.2, 8.3 ]
20+
php: [ 8.1, 8.2, 8.3, 8.4 ]
2121
laravel: [ '10.*', '11.*', '12.*' ]
2222
dependency-version: [ prefer-lowest, prefer-stable ]
2323

@@ -29,19 +29,6 @@ jobs:
2929

3030
name: P${{ matrix.php }} / L${{ matrix.laravel }} / ${{ matrix.dependency-version }}
3131

32-
services:
33-
mysql:
34-
image: mysql:8.0
35-
env:
36-
MYSQL_DATABASE: fast_paginate
37-
MYSQL_HOST: 127.0.0.1
38-
MYSQL_USER: test
39-
MYSQL_PASSWORD: root
40-
MYSQL_ROOT_PASSWORD: root
41-
ports:
42-
- 3306:3306
43-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
44-
4532
steps:
4633
- name: Checkout code
4734
uses: actions/checkout@v4

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"illuminate/console": "^10.0|^11.0|^12.0"
1717
},
1818
"require-dev": {
19-
"orchestra/testbench": "^8.0|^9.0|^10.0",
19+
"laravel/pint": "^1.0",
2020
"mockery/mockery": "^1.3.3",
21+
"orchestra/testbench": "^8.0|^9.0|^10.0",
2122
"phpunit/phpunit": "^8.4|^9.5|^10.5|^11.5.3"
2223
},
2324
"autoload": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
33
<testsuites>
4-
<testsuite name="TBD Test Suite">
4+
<testsuite name="Airdrop Test Suite">
55
<directory>tests</directory>
66
<exclude>tests/BaseTest.php</exclude>
77
</testsuite>

test

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)