.github/workflows/phpcsfixer.yml
name: PHP-CS-Fixer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
laravel-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- uses: actions/checkout@v3
- name: Set nova credentials
run: composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
- name: Install Dependencies
run: composer install
- name: Execute PHP-CS-Fixer test
run: vendor/bin/php-cs-fixer fix --dry-run --using-cache=no