From a03375e43611ac04e253f0b3f59119ee108f37e1 Mon Sep 17 00:00:00 2001 From: HorstOeko Date: Sat, 15 Jun 2024 09:24:11 +0200 Subject: [PATCH] Updated workflows --- .github/workflows/build.php73.ant.yml | 9 +++---- .github/workflows/build.php74.ant.yml | 7 +++--- .github/workflows/build.php80.ant.yml | 9 +++---- .github/workflows/build.php81.ant.yml | 9 +++---- .github/workflows/build.php81.release.ant.yml | 5 ++-- .github/workflows/build.php82.ant.yml | 9 +++---- .github/workflows/build.php83.ant.yml | 9 +++---- .github/workflows/maintain-issues-stale.yml | 24 +++++++++++++++++++ 8 files changed, 56 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/maintain-issues-stale.yml diff --git a/.github/workflows/build.php73.ant.yml b/.github/workflows/build.php73.ant.yml index ecaa1cf..1af63ca 100644 --- a/.github/workflows/build.php73.ant.yml +++ b/.github/workflows/build.php73.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,17 +23,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '7.3' - extensions: imagick, swoole + extensions: imagick, swoole coverage: xdebug - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php74.ant.yml b/.github/workflows/build.php74.ant.yml index 6c2efff..73f38c3 100644 --- a/.github/workflows/build.php74.ant.yml +++ b/.github/workflows/build.php74.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: @@ -32,7 +33,7 @@ jobs: - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php80.ant.yml b/.github/workflows/build.php80.ant.yml index 579c71a..67478e2 100644 --- a/.github/workflows/build.php80.ant.yml +++ b/.github/workflows/build.php80.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,17 +23,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '8.0' - extensions: imagick, swoole + extensions: imagick, swoole coverage: xdebug - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php81.ant.yml b/.github/workflows/build.php81.ant.yml index 8ee67dd..802e114 100644 --- a/.github/workflows/build.php81.ant.yml +++ b/.github/workflows/build.php81.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,17 +23,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '8.1' - extensions: imagick, swoole + extensions: imagick, swoole coverage: xdebug - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php81.release.ant.yml b/.github/workflows/build.php81.release.ant.yml index f46e451..16651ac 100644 --- a/.github/workflows/build.php81.release.ant.yml +++ b/.github/workflows/build.php81.release.ant.yml @@ -7,6 +7,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' jobs: build: @@ -14,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: @@ -24,7 +25,7 @@ jobs: - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 + uses: EnricoMi/publish-unit-test-result-action@v2 if: always() with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php82.ant.yml b/.github/workflows/build.php82.ant.yml index d7b9afa..61a7303 100644 --- a/.github/workflows/build.php82.ant.yml +++ b/.github/workflows/build.php82.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,17 +23,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '8.2' - extensions: imagick, swoole + extensions: imagick, swoole coverage: xdebug - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php83.ant.yml b/.github/workflows/build.php83.ant.yml index 5ed4e59..9520a5e 100644 --- a/.github/workflows/build.php83.ant.yml +++ b/.github/workflows/build.php83.ant.yml @@ -9,6 +9,7 @@ on: paths-ignore: - '**.md' - '.github/**' + - 'examples/**' pull_request: types: - opened @@ -22,17 +23,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '8.3' - extensions: imagick, swoole + extensions: imagick, swoole coverage: xdebug - name: Build with Ant run: ant -noinput -buildfile build.ant.xml - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + if: github.event_name != 'pull_request' with: files: "./build/logs/junit.xml" diff --git a/.github/workflows/maintain-issues-stale.yml b/.github/workflows/maintain-issues-stale.yml new file mode 100644 index 0000000..922b1d1 --- /dev/null +++ b/.github/workflows/maintain-issues-stale.yml @@ -0,0 +1,24 @@ +name: Close inactive issues + +on: + schedule: + - cron: "0 5 * * *" + workflow_dispatch: + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}