From de3595622c70261049d0f8418dd1236695045988 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 25 Nov 2021 17:11:51 +0200 Subject: [PATCH] sgx: add e2e workflow Signed-off-by: Ed Bartosh --- .github/workflows/e2e-sgx.yml | 34 ++++++++++++++++++++++++++++++++++ Makefile | 3 +++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/e2e-sgx.yml diff --git a/.github/workflows/e2e-sgx.yml b/.github/workflows/e2e-sgx.yml new file mode 100644 index 000000000..25e3f9626 --- /dev/null +++ b/.github/workflows/e2e-sgx.yml @@ -0,0 +1,34 @@ +name: e2e-sgx +on: + workflow_dispatch: + inputs: + images: + description: 'Images to build before provisioning pull on worker' + required: true + default: 'intel-sgx-plugin intel-sgx-initcontainer intel-sgx-admissionwebhook' + +env: + IMAGES: ${{ github.event.inputs.images }} + +jobs: + e2e-sgx: + name: e2e-sgx + runs-on: [self-hosted, linux, x64, sgx] + concurrency: one_at_a_time_sgx + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Describe test environment + run: | + echo "Event name: ${{ github.event_name }}" + echo "Actor: ${{ github.actor }}" + echo "Ref: ${{ github.ref }}" + echo "SHA: ${{ github.sha }}" + echo "Images: ${{ github.event.inputs.images }}" + - name: Wait for ready state + run: ../../../../bmetal/actions-bmetal-runstage.sh waitready + - name: Prepare test environment + run: ../../../../bmetal/actions-bmetal-runstage.sh prepare + - name: Run tests + run: ../../../../bmetal/actions-bmetal-runstage.sh test diff --git a/Makefile b/Makefile index 1bb925f41..27a38192f 100644 --- a/Makefile +++ b/Makefile @@ -138,6 +138,9 @@ e2e-fpga: e2e-qat: @$(GO) test -v ./test/e2e/... -ginkgo.v -ginkgo.progress -ginkgo.focus "QAT plugin in DPDK mode" +e2e-sgx: + @$(GO) test -v ./test/e2e/... -ginkgo.v -ginkgo.progress -ginkgo.focus "SGX" + pre-pull: ifeq ($(TAG),devel) @$(BUILDER) pull golang:1.17-bullseye