Skip to content

Commit

Permalink
workflows: enable docker e2e test in e2e_run_all
Browse files Browse the repository at this point in the history
This will make the e2e tests for docker to run.

Notice that's set continue-on-error so that the e2e_run_all workflow
exit status won't change, i.e. any failure on e2e_docker is disregarded.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm authored and stevenhorsman committed Jan 22, 2025
1 parent 6a0fcc3 commit bb3c7f3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/e2e_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ defaults:
jobs:
test-docker:
runs-on: ubuntu-22.04
# TODO: remove this when the job gets stable
continue-on-error: true
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/e2e_run_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
env:
PROVIDERS: "libvirt"
PROVIDERS: "docker libvirt"
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down Expand Up @@ -283,3 +283,29 @@ jobs:
git_ref: ${{ inputs.git_ref }}
oras: true
secrets: inherit

# Run docker e2e tests if pull request labeled 'test_e2e_docker'
docker:
name: docker
if: |
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'test_e2e_docker')
needs: [podvm_mkosi_amd64, caa_image_amd64]
strategy:
fail-fast: false
matrix:
os:
- fedora
provider:
- docker
arch:
- amd64
uses: ./.github/workflows/e2e_docker.yaml
with:
caa_image: ${{ inputs.registry }}/cloud-api-adaptor
caa_image_tag: ${{ inputs.caa_image_tag }}
podvm_image: ${{ needs.podvm_mkosi_amd64.outputs.docker_oci_image }}
install_directory_artifact: install_directory
git_ref: ${{ inputs.git_ref }}
secrets: inherit

0 comments on commit bb3c7f3

Please sign in to comment.