From a04f7b7341f292ba55f14abe5ab58cf753162bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 08:54:07 +0200 Subject: [PATCH 1/5] chore: Fix Bamarni plugin deprecations --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 96f28b0a..39c63680 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,10 @@ "extra": { "branch-alias": { "dev-master": "0.4-dev" + }, + "bamarni": { + "bin-links": false, + "forward-command": false } }, "minimum-stability": "dev" From 7126cae8d22b1016e9796cb81d43e24f5adb54d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 09:06:46 +0200 Subject: [PATCH 2/5] bump the default version of the docker image to 8.1 --- dev/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/docker/Dockerfile b/dev/docker/Dockerfile index d9db2b6e..88b3fe23 100644 --- a/dev/docker/Dockerfile +++ b/dev/docker/Dockerfile @@ -1,4 +1,4 @@ -ARG PHP_VERSION=7.4 +ARG PHP_VERSION=8.1 FROM php:${PHP_VERSION}-cli-alpine LABEL maintainer="Petar Obradović " From e9e221d52be18ea1dc6a2d4865c07f03c4e4d325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 09:13:18 +0200 Subject: [PATCH 3/5] ci: Add a monthly schedule for the pipeline --- .github/workflows/coding-standards.yml | 7 ++++++- .github/workflows/static-analysis.yml | 7 ++++++- .github/workflows/unit-tests.yml | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 2c25e959..335e76e4 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -1,6 +1,11 @@ name: "coding standards" -on: ["pull_request", "push"] +on: + pull_request: ~ + push: ~ + schedule: + # Do not make it the first of the month and/or midnight since it is a very busy time + - cron: "* 10 5 * *" jobs: coding-standards: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 99aa0f09..2c4a1184 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,6 +1,11 @@ name: "static analysis" -on: ["pull_request", "push"] +on: + pull_request: ~ + push: ~ + schedule: + # Do not make it the first of the month and/or midnight since it is a very busy time + - cron: "* 10 5 * *" jobs: static-analysis: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5f61b545..a350353d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,6 +1,11 @@ name: "unit tests" -on: [ "pull_request", "push" ] +on: + pull_request: ~ + push: ~ + schedule: + # Do not make it the first of the month and/or midnight since it is a very busy time + - cron: "* 10 5 * *" jobs: tests: From 644852f64b4787843c5075a8c4246d17597139d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 09:19:12 +0200 Subject: [PATCH 4/5] ci: Update actions/checkout version --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/static-analysis.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 2c25e959..0c46b0bf 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -8,7 +8,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "build the environment" run: "dev/bin/docker-compose build" diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 99aa0f09..b6255e1d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -8,7 +8,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "build the environment" run: "dev/bin/docker-compose build" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5f61b545..f6a7829f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -47,7 +47,7 @@ jobs: steps: - name: "checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "build the PHP7 environment" run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} php" From 94e4e11e6f0ebfb158f7c398fb2e7efea43a5593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 14 Oct 2023 11:10:30 +0200 Subject: [PATCH 5/5] remove bamarni/composer-bin-plugin --- composer.json | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 526bf61c..19c7eb4d 100644 --- a/composer.json +++ b/composer.json @@ -40,18 +40,11 @@ "psr-4": { "League\\Bundle\\OAuth2ServerBundle\\Tests\\": "tests/" } }, "config": { - "sort-packages": true, - "allow-plugins": { - "bamarni/composer-bin-plugin": true - } + "sort-packages": true }, "extra": { "branch-alias": { "dev-master": "0.4-dev" - }, - "bamarni": { - "bin-links": false, - "forward-command": false } }, "minimum-stability": "dev"