Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ on:
- main
- \d+.\d+
pull_request: ~
workflow_dispatch: ~
# Check api-platform packages with dev every sunday at 02:00
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 * * 0
- cron: 0 2 * * *

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading