From 19d1c3e152177e619c4e3d2b1e6560bb2677b00b Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:10:13 +0100 Subject: [PATCH 1/2] chore: run api-platform dev dependencies everyday at 2am --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8e48c00a..7c45b5a79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ on: - \d+.\d+ pull_request: ~ workflow_dispatch: ~ - # Check api-platform packages with dev every sunday at 02:00 + # Check api-platform packages with dev every day at 02:00 schedule: - - cron: 0 2 * * 0 + - cron: 0 2 * * * concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} From 36abba862f6e5a3409003597fca2ce8623823a4a Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:22:34 +0100 Subject: [PATCH 2/2] chore: allow to run CI manually --- .github/workflows/ci.yml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c45b5a79..7d27d741d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,19 @@ on: - main - \d+.\d+ pull_request: ~ - workflow_dispatch: ~ + workflow_dispatch: + inputs: + minimum-stability: + description: 'Minimum stability' + required: false + default: 'stable' + type: choice + options: + - dev + - alpha + - beta + - RC + - stable # Check api-platform packages with dev every day at 02:00 schedule: - cron: 0 2 * * * @@ -53,10 +65,10 @@ jobs: name: Start services run: docker compose up --wait --no-build - - name: Update API Platform to latest - if: ${{ github.event_name == 'schedule' }} + name: Update API Platform + if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != 'stable') }} run: | - docker compose exec php composer config minimum-stability dev + docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }} docker compose exec php composer update "api-platform/*" - name: Check HTTP reachability @@ -155,10 +167,10 @@ jobs: name: Start Services run: docker compose up --wait --no-build - - name: Update API Platform to latest - if: ${{ github.event_name == 'schedule' }} + name: Update API Platform + if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != 'stable') }} run: | - docker compose exec php composer config minimum-stability dev + docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }} docker compose exec php composer update "api-platform/*" - name: Load Fixtures