diff --git a/.github/workflows/linting_tests.yml b/.github/workflows/linting_tests.yml index 656a88a76..df1c7796d 100644 --- a/.github/workflows/linting_tests.yml +++ b/.github/workflows/linting_tests.yml @@ -2,6 +2,9 @@ name: Linting Tests on: [push, pull_request] +permissions: + contents: write + jobs: linting_tests: runs-on: ${{ matrix.operating-systems }} @@ -9,14 +12,23 @@ jobs: strategy: matrix: operating-systems: [ubuntu-latest] - php-versions: ['8.3', '8.2'] + php-versions: ['8.3'] name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }} steps: - - uses: actions/checkout@v1 - - name: Running Pint Test - uses: aglipanci/laravel-pint-action@2.0.0 - with: - testMode: true - verboseMode: true + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Pint + run: composer global require laravel/pint + env: + COMPOSER_HOME: ${{ runner.temp }}/composer + + - name: Run Pint + run: ${{ runner.temp }}/composer/vendor/bin/pint + + - name: Commit Linted Files + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: applied pint changes"