mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-16 06:07:15 +00:00
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>
22 lines
586 B
YAML
22 lines
586 B
YAML
name: Cloud Hypervisor Tests (Rate-Limiter)
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Tests (Rate-Limiter)
|
|
runs-on: jammy-rate-limiter
|
|
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 rate-limiter integration tests
|
|
timeout-minutes: 10
|
|
run: scripts/dev_cli.sh tests --integration-rate-limiter
|