cloud-hypervisor/.github/workflows/integration-sgx.yaml
Bo Chen 551d36e502 build: Add a step to fix workspace permissions on bare-metal workers
When a bare-metal worker is canceled, its workspace can be left with
files owned by the root user as a result of running tests from our
container. This patch add a step to fix workspace permissions for such
case before checking out code.

Signed-off-by: Bo Chen <chen.bo@intel.com>
(cherry picked from commit f48942ce3f12f507ea5530b926aaf631d914dadd)
2024-03-14 19:52:57 -07:00

25 lines
686 B
YAML

name: Cloud Hypervisor Tests (SGX)
on:
push:
branches:
- main
jobs:
build:
name: Tests (SGX)
runs-on: jammy-sgx
steps:
- name: Fix workspace permissions
if: ${{ github.event_name != 'pull_request' }}
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run SGX integration tests
timeout-minutes: 10
run: scripts/dev_cli.sh tests --integration-sgx
- name: Run SGX integration tests for musl
timeout-minutes: 10
run: scripts/dev_cli.sh tests --integration-sgx --libc musl