Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Jun 15, 2024
1 parent eaa2bd7 commit a03375e
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 25 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.php73.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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"
7 changes: 4 additions & 3 deletions .github/workflows/build.php74.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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:
Expand All @@ -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"
9 changes: 5 additions & 4 deletions .github/workflows/build.php80.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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"
9 changes: 5 additions & 4 deletions .github/workflows/build.php81.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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"
5 changes: 3 additions & 2 deletions .github/workflows/build.php81.release.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'

jobs:
build:
permissions: write-all
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:
Expand All @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build.php82.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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"
9 changes: 5 additions & 4 deletions .github/workflows/build.php83.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths-ignore:
- '**.md'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
Expand All @@ -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"
24 changes: 24 additions & 0 deletions .github/workflows/maintain-issues-stale.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a03375e

Please sign in to comment.