Skip to content

Commit

Permalink
Move external network E2E to main E2E matrix
Browse files Browse the repository at this point in the history
Instead of defining a second job matrix for external network E2E
deployments and tests, include those jobs in the E2E-Full matrix.

This results in adding a post-mortem step for external E2E tests.
It also de-duplicates the workflow, making maintenance easier.

Signed-off-by: Daniel Farrell <[email protected]>
  • Loading branch information
dfarrell07 committed Apr 1, 2022
1 parent 1cf0ebe commit 4737d5c
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/e2e-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,28 @@ jobs:
globalnet: 'globalnet'
- ovn: 'ovn'
cable_driver: 'wireguard'
include:
- external_net: 'external-net'
globalnet: ''
- external_net: 'external-net'
globalnet: 'globalnet'
steps:
- name: Check out the repository
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846

- name: Run E2E deployment and tests
if: matrix.external_net != 'external-net'
uses: submariner-io/shipyard/gh-actions/e2e@devel
with:
using: ${{ matrix.cable_driver }} ${{ matrix.deploytool }} ${{ matrix.globalnet }} ${{ matrix.ovn }}

- name: Post mortem
if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel

e2e-external:
name: External Network E2E
if: contains(github.event.pull_request.labels.*.name, 'ready-to-test')
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
external_net: ['external-net']
globalnet: ['', 'globalnet']
steps:
- name: Check out the repository
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846

- name: Run E2E deployment and tests
- name: Run External Network E2E deployment and tests
if: matrix.external_net == 'external-net'
uses: submariner-io/shipyard/gh-actions/e2e@devel
with:
using: ${{ matrix.external_net }} ${{ matrix.globalnet }}
skip: ""
skip: "" # Override skipping external network tests

- name: Post mortem
if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel

0 comments on commit 4737d5c

Please sign in to comment.