mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-19 11:05:18 +00:00
551d36e502
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)
22 lines
689 B
YAML
22 lines
689 B
YAML
name: Cloud Hypervisor Tests (ARM64)
|
|
on: [pull_request, merge_group]
|
|
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 60
|
|
name: Tests (ARM64)
|
|
runs-on: focal-arm64
|
|
steps:
|
|
- name: Fix workspace permissions
|
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
|
- name: Code checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Run unit tests (musl)
|
|
run: scripts/dev_cli.sh tests --unit --libc musl
|
|
- name: Load openvswitch module
|
|
run: sudo modprobe openvswitch
|
|
- name: Run integration tests (musl)
|
|
timeout-minutes: 30
|
|
run: scripts/dev_cli.sh tests --integration --libc musl |