diff --git a/.github/workflows/auto-commit.yml b/.github/workflows/auto-commit.yml new file mode 100644 index 0000000..9f12e59 --- /dev/null +++ b/.github/workflows/auto-commit.yml @@ -0,0 +1,23 @@ +name: Auto Commit + +on: + workflow_dispatch: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + +permissions: {} + +jobs: + pint: + uses: typisttech/.github/.github/workflows/auto-pint.yml@auto-pint + permissions: + contents: write + pull-requests: write + secrets: + pr-write-pat-token: ${{ secrets.PR_WRITE_PAT_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 4a64fe4..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Lint - -on: - workflow_dispatch: - pull_request: - branches: - - main - push: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }} - cancel-in-progress: true - -permissions: - contents: read # TODO! - -jobs: - pint: - runs-on: ubuntu-latest - strategy: - matrix: - php: ['8.4'] - steps: - - uses: actions/checkout@v4 - - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}-${{ github.run_id }} - restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- - - - run: composer update --no-progress --prefer-dist --optimize-autoloader - - - run: composer pint:test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5bbbbe..66e6112 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,8 +13,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true -permissions: - contents: read # TODO! +permissions: {} jobs: pest: