diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f9618c8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Fix Code Style + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [8.3] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: json, dom, curl, libxml, mbstring + coverage: none + + - name: Install Pint + run: composer global require laravel/pint + + - name: Run Pint + run: pint + + - name: Commit Linted Files + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "[GitHub] fixes coding style" diff --git a/composer.json b/composer.json index f710799..c6a33df 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,8 @@ "pestphp/pest-plugin-type-coverage": "^3.0", "spatie/laravel-ray": "^1.37", "larastan/larastan": "^2.9", - "orchestra/testbench": "^9.4", - "orchestra/testbench-dusk": "^9.7", + "orchestra/testbench": "^8.0|^9.0", + "orchestra/testbench-dusk": "^8.0|^9.0", "rector/rector": "^1.2" }, "autoload": {