Skip to content
Open
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
35 changes: 33 additions & 2 deletions .github/workflows/build-mageos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,41 @@ jobs:
fail-fast: false
magento_repository: ${{ inputs.repo }}
composer_cache_key: ${{ inputs.composer_cache_key || 'v1' }}
e2e-check:
name: "storefront & admin check"
# Installs the version just deployed, which the installation check above
# cannot: its matrix comes from supported-version (kind: usable), and a
# version is listed there only after it ships. Advisory for now: the tag
# waits for the result but publishes either way, so a suite that is still
# settling cannot hold up a release. Make it a gate by putting
# e2e-check back in the success() set below.
if: ${{ inputs.mageos_release != '' }}
needs: [ deploy ]
# The suite is fetched from a public repository and nothing here writes,
# so the token the called workflow runs with needs no more than this.
permissions:
contents: read
uses: mage-os/github-actions/.github/workflows/e2e.yaml@main
with:
magento_repository: ${{ inputs.repo }}
magento_version: "mage-os/project-community-edition:${{ inputs.mageos_release }}"
artifact_name: "e2e-report-${{ inputs.mageos_release }}"
# suite_ref defaults to the github-actions default branch, like the
# uses: ref. Unlike the installation check, whose tests ship inside the
# released package, this suite is fetched at run time -- whether to pin
# both to a tag is still open.
publish-release-tag:
name: "Publish release tag"
if: ${{ success() && inputs.mageos_release && inputs.publish_tag }}
needs: [ deploy, integration-check ]
# e2e-check is in needs for ordering only. success() would cover it too,
# so deploy and integration-check are named as the hard gates, and
# !cancelled() is what lets this job run at all once a need has failed.
# Dropping cancelled() would push the tag out of a cancelled release.
if: >-
${{ !cancelled()
&& needs.deploy.result == 'success'
&& needs.integration-check.result == 'success'
&& inputs.mageos_release && inputs.publish_tag }}
needs: [ deploy, integration-check, e2e-check ]
uses: ./.github/workflows/push-release-tag.yml
with:
mageos_release: ${{ inputs.mageos_release }}
Expand Down
Loading