From c5219555821d15db08d076917ad8ca68fa029615 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Tue, 16 Jan 2024 20:35:30 +1100 Subject: [PATCH 1/3] Allow gh-ph to run on PRs from forks [1] https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target --- .github/workflows/gh-ph.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-ph.yml b/.github/workflows/gh-ph.yml index d97a410..c7aa5de 100644 --- a/.github/workflows/gh-ph.yml +++ b/.github/workflows/gh-ph.yml @@ -1,7 +1,11 @@ name: Pull request history on: - pull_request: + pull_request_target: + +permissions: + contents: read + pull-requests: write jobs: gh-ph: From d5bb3b5251dfe8fe0ddcfb01c139fe97a5284967 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Tue, 16 Jan 2024 20:37:40 +1100 Subject: [PATCH 2/3] Bump actions/checkout to v4 --- .github/workflows/gh-ph.yml | 2 +- .github/workflows/php.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-ph.yml b/.github/workflows/gh-ph.yml index c7aa5de..69954aa 100644 --- a/.github/workflows/gh-ph.yml +++ b/.github/workflows/gh-ph.yml @@ -12,7 +12,7 @@ jobs: name: Add commit history to pull request description runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: Frederick888/gh-ph@v1 diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 415c0ba..86c1e2c 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -25,7 +25,7 @@ jobs: php-version: ["8.2", "8.1", "8.0", "7.4", "7.3"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cancel Previous Runs if: contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.2') From a9ba41b593761f22b46ab1790a3045e2043b4e96 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Tue, 16 Jan 2024 20:39:01 +1100 Subject: [PATCH 3/3] Add PHP 8.3 to CI --- .github/workflows/php.yml | 4 ++-- .gitlab-ci.yml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 86c1e2c..5e17e0c 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -22,13 +22,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php-version: ["8.2", "8.1", "8.0", "7.4", "7.3"] + php-version: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3"] steps: - uses: actions/checkout@v4 - name: Cancel Previous Runs - if: contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.2') + if: contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.3') uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0d2c5e..446d74b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,10 @@ before_script: paths: - modules/bencode.so +php83: + extends: .php + image: php:8.3 + php82: extends: .php image: php:8.2