From 06271ef0ecab020585337f16d272a809117e08f4 Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Sun, 2 Oct 2022 23:39:54 +0800 Subject: [PATCH 1/6] Support Laravel 9 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c8d021a..1a31471 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ }, "require": { "php": ">=7.2.5", - "guzzlehttp/guzzle": "^6.2|^7.0.1", + "guzzlehttp/guzzle": "^6.2|^7.0.1|^7.2", "aws/aws-sdk-php": "~3.0", "illuminate/contracts": "^6.0|^7.0|^8.0", "illuminate/database": "^6.0|^7.0|^8.0", From f848622bc6761fb5d108322281bd1cf5bc279194 Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Sun, 2 Oct 2022 23:48:00 +0800 Subject: [PATCH 2/6] Add PHP `8.0` and `8.1` in `test` workflow --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa6e73c..4630ff9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: test -on: [push] +on: [push, pull_request] jobs: build: @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ 7.3, 7.4 ] + php: [ 7.3, 7.4, 8.0, 8.1 ] os: [ ubuntu-latest ] steps: From c058e0bb694c27dae8293656f85085f151e84763 Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Mon, 3 Oct 2022 00:01:25 +0800 Subject: [PATCH 3/6] Convert PHP version into strings --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4630ff9..2ce5639 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ 7.3, 7.4, 8.0, 8.1 ] + php: [ "7.3", "7.4", "8.0", "8.1" ] os: [ ubuntu-latest ] steps: From eebc0a10b107946b0ab53d1ee93e143b754af94d Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Mon, 3 Oct 2022 00:03:49 +0800 Subject: [PATCH 4/6] Add caching dependecies in test workflow --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ce5639..025db6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,12 @@ jobs: with: php-version: ${{ matrix.php }} + - name: Cache Composer dependencies + uses: actions/cache@v2 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - name: Install Dependencies uses: php-actions/composer@master with: From bfe100e7c1a620797fd3bf56ef8f3dc927f9fe2a Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Wed, 5 Oct 2022 10:00:06 +0800 Subject: [PATCH 5/6] Replace `pull_request` with `pull_request_target` --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 025db6c..d073233 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: test -on: [push, pull_request] +on: [push, pull_request_target] jobs: build: From abfdda42a0447768a2ba525dcea6524048443d4d Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Wed, 5 Oct 2022 10:06:09 +0800 Subject: [PATCH 6/6] Revert using `pull_request` --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d073233..6df6b08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: test -on: [push, pull_request_target] +on: + push: + pull_request: + types: + - opened + - synchronize jobs: build: