Skip to content

Commit c7952ad

Browse files
authored
Merge pull request #826 from bart0sh/PR125-add-e2e-sgx-workflow
sgx: add e2e workflow
2 parents f914f65 + de35956 commit c7952ad

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/e2e-sgx.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: e2e-sgx
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
images:
6+
description: 'Images to build before provisioning pull on worker'
7+
required: true
8+
default: 'intel-sgx-plugin intel-sgx-initcontainer intel-sgx-admissionwebhook'
9+
10+
env:
11+
IMAGES: ${{ github.event.inputs.images }}
12+
13+
jobs:
14+
e2e-sgx:
15+
name: e2e-sgx
16+
runs-on: [self-hosted, linux, x64, sgx]
17+
concurrency: one_at_a_time_sgx
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
- name: Describe test environment
23+
run: |
24+
echo "Event name: ${{ github.event_name }}"
25+
echo "Actor: ${{ github.actor }}"
26+
echo "Ref: ${{ github.ref }}"
27+
echo "SHA: ${{ github.sha }}"
28+
echo "Images: ${{ github.event.inputs.images }}"
29+
- name: Wait for ready state
30+
run: ../../../../bmetal/actions-bmetal-runstage.sh waitready
31+
- name: Prepare test environment
32+
run: ../../../../bmetal/actions-bmetal-runstage.sh prepare
33+
- name: Run tests
34+
run: ../../../../bmetal/actions-bmetal-runstage.sh test

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ e2e-fpga:
138138
e2e-qat:
139139
@$(GO) test -v ./test/e2e/... -ginkgo.v -ginkgo.progress -ginkgo.focus "QAT plugin in DPDK mode"
140140

141+
e2e-sgx:
142+
@$(GO) test -v ./test/e2e/... -ginkgo.v -ginkgo.progress -ginkgo.focus "SGX"
143+
141144
pre-pull:
142145
ifeq ($(TAG),devel)
143146
@$(BUILDER) pull golang:1.17-bullseye

0 commit comments

Comments
 (0)