Skip to content

Commit

Permalink
tests/e2e: Migrate e2e test for s390x to GHA
Browse files Browse the repository at this point in the history
This PR is to migrate the following e2e tests for s390x to GHA:

- confidential-containers-operator-main-ubuntu-20.04-s390x-containerd_kata-qemu-PR
- confidential-containers-operator-main-ubuntu-20.04-s390x-containerd_kata-qemu-baseline

Fixes: confidential-containers#294

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
  • Loading branch information
BbolroC committed Nov 27, 2023
1 parent a27d7f3 commit 2d4e3ad
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/e2e-s390x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: e2e tests for s390x
on:
push:
branches:
- migrate-to-gha-s390x

permissions:
contents: read

jobs:
e2e:
name: operator e2e tests for s390x
runs-on: s390x

strategy:
matrix:
runtimeclass: ["kata-qemu"]

steps:
- name: Adjust a permission for repo
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- name: Take a pre-action for self-hosted runner
run: ${HOME}/script/pre_action.sh cc-operator-pr

- uses: actions/checkout@v4

- name: Install deps
run: |
sudo apt-get update -y
sudo apt-get install -y ansible python-is-python3
- name: Run e2e tests
run: |
cd tests/e2e
export PATH="$PATH:/usr/local/bin"
./run-local.sh -r "{{ matrix.runtimeclass }} -u"
- name: Take a post-action
if: always()
run: ${HOME}/script/post_action.sh cc-operator-pr
4 changes: 4 additions & 0 deletions tests/e2e/ansible/install_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
- docker-ce-cli
state: present
when: docker_exist.rc != 0 and ansible_distribution == "CentOS"
- name: Wait 10 secs for docker.service to be available
wait_for:
path: /run/containerd/containerd.sock
timeout: 10
- name: Start docker service
service:
name: docker
Expand Down

0 comments on commit 2d4e3ad

Please sign in to comment.