mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-05 01:25:23 -05:00
adopt changes from linux e2e tests on macOS (#790)
This commit is contained in:
parent
fc010e063e
commit
e207081274
44
.github/workflows/e2e-test-manual-macos.yml
vendored
44
.github/workflows/e2e-test-manual-macos.yml
vendored
@ -17,6 +17,7 @@ on:
|
|||||||
options:
|
options:
|
||||||
- "gcp"
|
- "gcp"
|
||||||
- "azure"
|
- "azure"
|
||||||
|
- "aws"
|
||||||
default: "azure"
|
default: "azure"
|
||||||
required: true
|
required: true
|
||||||
test:
|
test:
|
||||||
@ -39,9 +40,10 @@ on:
|
|||||||
default: false
|
default: false
|
||||||
required: false
|
required: false
|
||||||
osImage:
|
osImage:
|
||||||
description: "Full name of OS image (CSP independent image version UID)."
|
description: "Full name of OS image (CSP independent image version UID). Leave empty for latest debug image on main."
|
||||||
type: string
|
type: string
|
||||||
required: true
|
default: ""
|
||||||
|
required: false
|
||||||
isDebugImage:
|
isDebugImage:
|
||||||
description: "Is OS image a debug image?"
|
description: "Is OS image a debug image?"
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -88,13 +90,47 @@ jobs:
|
|||||||
key: bootstrapper-${{ github.sha }}
|
key: bootstrapper-${{ github.sha }}
|
||||||
path: "build/bootstrapper"
|
path: "build/bootstrapper"
|
||||||
|
|
||||||
|
find-latest-image:
|
||||||
|
name: Select image
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
outputs:
|
||||||
|
image: ${{ steps.find-latest-image.outputs.image }}${{ steps.check-input.outputs.image }}
|
||||||
|
steps:
|
||||||
|
- name: Check input
|
||||||
|
id: check-input
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ -z "${{ inputs.osImage }}" ]]; then
|
||||||
|
echo "Using latest debug image from main."
|
||||||
|
else
|
||||||
|
echo "Using image '${{ inputs.osImage }}'."
|
||||||
|
echo "image=${{ inputs.osImage }}" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Find latest image
|
||||||
|
id: find-latest-image
|
||||||
|
if: steps.check-input.outputs.image == ''
|
||||||
|
uses: ./.github/actions/find_latest_image
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
stream: debug
|
||||||
|
|
||||||
e2e-test-manual-darwin:
|
e2e-test-manual-darwin:
|
||||||
name: "e2e Test Manual (macOS)"
|
name: "e2e Test Manual (macOS)"
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
needs: build-bootstrapper-linux
|
needs: [build-bootstrapper-linux, find-latest-image]
|
||||||
if: ${{ always() && !cancelled() && (needs.build-bootstrapper-linux.result == 'success' || needs.build-bootstrapper-linux.result == 'skipped') }}
|
if: ${{ always() && !cancelled() && (needs.build-bootstrapper-linux.result == 'success' || needs.build-bootstrapper-linux.result == 'skipped') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install the basics
|
- name: Install the basics
|
||||||
@ -151,7 +187,7 @@ jobs:
|
|||||||
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
||||||
azureUserAssignedIdentity: ${{ secrets.AZURE_E2E_USER_ASSIGNED_IDENTITY }}
|
azureUserAssignedIdentity: ${{ secrets.AZURE_E2E_USER_ASSIGNED_IDENTITY }}
|
||||||
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
||||||
osImage: ${{ github.event.inputs.osImage }}
|
osImage: ${{ needs.find-latest-image.outputs.image }}
|
||||||
isDebugImage: ${{ github.event.inputs.isDebugImage }}
|
isDebugImage: ${{ github.event.inputs.isDebugImage }}
|
||||||
|
|
||||||
- name: Always terminate cluster
|
- name: Always terminate cluster
|
||||||
|
Loading…
x
Reference in New Issue
Block a user