File tree Expand file tree Collapse file tree 2 files changed +34
-39
lines changed
Expand file tree Collapse file tree 2 files changed +34
-39
lines changed Original file line number Diff line number Diff line change @@ -102,45 +102,6 @@ jobs:
102102 files : ./coverage-integration.out
103103 flags : integration
104104
105- Acceptance :
106- runs-on : ubuntu-latest
107- steps :
108- # Disabled until we figure out the "Could not resolve host: github.com" in
109- # acceptance tests
110- # - name: Harden Runner
111- # uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
112- # with:
113- # egress-policy: audit
114- # disable-telemetry: true
115-
116- - name : Checkout repository
117- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
118-
119- - name : Restore Cache
120- uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
121- with :
122- key : main
123- path : ' **'
124-
125- - name : Setup Go environment
126- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
127- with :
128- go-version-file : go.mod
129- cache : false
130-
131- - name : Update podman
132- run : |
133- "${GITHUB_WORKSPACE}/hack/ubuntu-podman-update.sh"
134-
135- - name : Acceptance test
136- run : make acceptance
137-
138- - name : Upload coverage report
139- uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
140- with :
141- files : ./coverage-acceptance.out
142- flags : acceptance
143-
144105 Tools :
145106 runs-on : ubuntu-latest
146107 steps :
Original file line number Diff line number Diff line change @@ -152,3 +152,37 @@ jobs:
152152
153153 - name : Test
154154 run : make test
155+
156+ Acceptance :
157+ runs-on : ubuntu-latest
158+ needs : [Initialize, Test]
159+ env :
160+ BSID : ${{ needs.Initialize.outputs.bsid }}
161+ SEALIGHTS_LOG_LEVEL : none
162+ SEALIGHTS_CONNECTION_TIMEOUT : 120s
163+ steps :
164+ - name : Restore workspace
165+ uses : actions/cache@v4
166+ with :
167+ path : ${{ github.workspace }}
168+ key : workspace-${{ github.run_id }}
169+
170+ - name : Update podman
171+ run : |
172+ "${GITHUB_WORKSPACE}/hack/ubuntu-podman-update.sh"
173+ - name : Create a test session
174+ run : ./slcli test start-stage --bsid=$BSID --testStage "Acceptance Tests"
175+
176+ - name : Acceptance test
177+ env :
178+ SEALIGHTS_LOG_LEVEL : none
179+ DOCKER_BUILDKIT : 1
180+ COMPOSE_DOCKER_CLI_BUILD : 1
181+ run : make acceptance-sealights
182+
183+ - name : Upload test results, end test session
184+ if : success() || failure()
185+ run : |
186+ cat ./junit-acceptance.xml
187+ ./slcli test upload-reports --bsid=$BSID --report-location ./junit-acceptance.xml
188+ ./slcli test end-stage --bsid=$BSID --executionId "Acceptance Tests"
You can’t perform that action at this time.
0 commit comments