From b6bead6a3f481259f910f938547815aa81740313 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Tue, 25 Jun 2024 15:41:04 +0200 Subject: [PATCH] update github actions --- .github/workflows/composer-normalize.yml | 26 ----------- .github/workflows/markdown-normalize.yml | 19 -------- .github/workflows/pint.yml | 17 +++++++ .github/workflows/stale-issues.yml | 57 ------------------------ 4 files changed, 17 insertions(+), 102 deletions(-) delete mode 100644 .github/workflows/composer-normalize.yml delete mode 100644 .github/workflows/markdown-normalize.yml create mode 100644 .github/workflows/pint.yml delete mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/composer-normalize.yml b/.github/workflows/composer-normalize.yml deleted file mode 100644 index fb8b369..0000000 --- a/.github/workflows/composer-normalize.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: normalize composer.json - -on: - push: - paths: - - 'composer.json' - -jobs: - normalize: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - - - name: Validate Composer configuration - run: composer validate --strict - - - name: Normalize composer.json - run: | - composer global require ergebnis/composer-normalize - composer normalize --indent-style=space --indent-size=4 --no-check-lock --no-update-lock --no-interaction --ansi - - - uses: stefanzweifel/git-auto-commit-action@v4.0.0 - with: - commit_message: normalize composer.json diff --git a/.github/workflows/markdown-normalize.yml b/.github/workflows/markdown-normalize.yml deleted file mode 100644 index 95e9fa4..0000000 --- a/.github/workflows/markdown-normalize.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: normalize markdown - -on: - push: - paths: - - '*.md' - -jobs: - normalize: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - - - name: Prettify markdown - uses: creyD/prettier_action@v3.0 - with: - prettier_options: --write **/*.md diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml new file mode 100644 index 0000000..513d296 --- /dev/null +++ b/.github/workflows/pint.yml @@ -0,0 +1,17 @@ +name: pint + +on: + push: + pull_request: + +jobs: + phpcs: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + - run: composer install --no-interaction --no-scripts + - run: vendor/bin/pint --test diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml deleted file mode 100644 index bdc7d06..0000000 --- a/.github/workflows/stale-issues.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: "Close stale issues" -on: - schedule: - - cron: "0 0 * * *" - -jobs: - default: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days' - stale-issue-label: 'stale' - exempt-issue-labels: 'bug,enhancement,documentation,help wanted,next release,next major release' - days-before-stale: 21 - days-before-close: 7 - - invalid: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been labeled as invalid.' - stale-issue-label: 'stale' - only-labels: 'invalid' - days-before-stale: 1 - days-before-close: 2 - - duplicate: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been labeled as duplicate.' - stale-issue-label: 'stale' - only-labels: 'duplicate' - days-before-stale: 1 - days-before-close: 2 - - wontfix: - timeout-minutes: 1 - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been labeled as wontfix.' - stale-issue-label: 'stale' - only-labels: 'wontfix' - days-before-stale: 1 - days-before-close: 2