* Fix CI/CD php version

* Add Pint
* Format code
This commit is contained in:
Fabián Gonzalo Artur de la Villarmois
2026-03-29 17:49:51 +13:00
parent 0993bfa666
commit bae79d68ab
17 changed files with 114 additions and 59 deletions
+25 -2
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.4'
extensions: mbstring
coverage: none
@@ -34,10 +34,33 @@ jobs:
working-directory: www
run: php artisan test
lint:
name: Check code style (Pint)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring
coverage: none
- name: Install Composer dependencies
working-directory: www
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Run Pint
working-directory: www
run: ./vendor/bin/pint --test
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
needs: test
needs: [test, lint]
steps:
- name: Checkout
+24 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.4'
extensions: mbstring
coverage: none
@@ -33,3 +33,26 @@ jobs:
- name: Run tests
working-directory: www
run: php artisan test
lint:
name: Check code style (Pint)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring
coverage: none
- name: Install Composer dependencies
working-directory: www
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Run Pint
working-directory: www
run: ./vendor/bin/pint --test