Skip to content

Commit

Permalink
fixup! WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Oct 4, 2024
1 parent 5d138bb commit 74cf071
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:

jobs:
test:
name: "${{ inputs.platform }} / ${{ inputs.test-name }}"
name: "${{ inputs.test-name }}"
runs-on: ${{ inputs.runner }}
permissions:
contents: read
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/e2e_manual.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e test manual
name: e2e test

on:
workflow_call:
Expand Down Expand Up @@ -43,16 +43,17 @@ on:

jobs:
determine-platform-params:
runs-on: ubuntu-22.04
outputs:
runner: ${{ steps.determine-platform-params.outputs.runner }}
self-hosted: ${{ steps.determine-platform-params.outputs.self-hosted == "true" }}
self-hosted: ${{ steps.determine-platform-params.outputs.self-hosted }}
steps:
- name: Determine Platform Parameters
id: determine-platform-params
run: |
case ${{ inputs.platform }} in
"AKS-CLH-SNP")
echo "runner=ubuntu:20.04" >> "$GITHUB_OUTPUT"
echo "runner=ubuntu-22.04" >> "$GITHUB_OUTPUT"
echo "self-hosted=false" >> "$GITHUB_OUTPUT"
;;
"K3s-QEMU-SNP")
Expand All @@ -70,15 +71,15 @@ jobs:
esac
test:
name: "${{ inputs.platform }} / ${{ inputs.test-name }}"
name: "${{ inputs.platform }}"
needs: [determine-platform-params]
uses: ./.github/workflows/e2e.yaml
with:
skip-undeploy: ${{ inputs.skip-undeploy }}
test-name: ${{ inputs.test-name }}
platform: ${{ inputs.platform }}
runner: ${{ needs.determine-platform-params.outputs.runner }}
self-hosted: ${{ needs.determine-platform-params.outputs.self-hosted }}
self-hosted: ${{ fromJSON(needs.determine-platform-params.outputs.self-hosted) }}
secrets: inherit
permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e_nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e test openssl
name: e2e test

on:
schedule:
Expand All @@ -21,7 +21,7 @@ jobs:
test-name:
[servicemesh, openssl, policy, workloadsecret, volumestatefulset]
fail-fast: false
name: "${{ matrix.platform.name }} / ${{ matrix.test-name }}"
name: "${{ matrix.platform.name }}"
uses: ./.github/workflows/e2e.yaml
with:
skip-undeploy: false
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/e2e_openssl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e test openssl
name: e2e test

on:
pull_request:
Expand All @@ -24,16 +24,15 @@ jobs:
runner: TDX
self-hosted: true
fail-fast: false
name: "${{ matrix.platform.name }} / openssl"
name: "${{ matrix.platform.name }}"
uses: ./.github/workflows/e2e.yaml
with:
skip-undeploy: false
test-name: openssl
platform: ${{ matrix.platform.name }}
runner: ${{ matrix.platform.runner }}
self-hosted: ${{ matrix.platform.self-hosted }}
secrets:
inherit
secrets: inherit
permissions:
contents: read
packages: write
35 changes: 35 additions & 0 deletions .github/workflows/e2e_service_mesh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: e2e test

on:
pull_request:
paths:
- e2e/servicemesh/**
- service-mesh/**

jobs:
test_matrix:
strategy:
matrix:
platform:
- name: AKS-CLH-SNP
runner: ubuntu-22.04
self-hosted: false
- name: K3s-QEMU-SNP
runner: SNP
self-hosted: true
- name: K3s-QEMU-TDX
runner: TDX
self-hosted: true
fail-fast: false
name: "${{ matrix.platform.name }}"
uses: ./.github/workflows/e2e.yaml
with:
skip-undeploy: false
test-name: servicemesh
platform: ${{ matrix.platform.name }}
runner: ${{ matrix.platform.runner }}
self-hosted: ${{ matrix.platform.self-hosted }}
secrets: inherit
permissions:
contents: read
packages: write

0 comments on commit 74cf071

Please sign in to comment.