2024-02-26 18:22:21 +00:00
|
|
|
name: Cloud Hypervisor Tests (Rate-Limiter)
|
2024-02-29 07:36:30 +00:00
|
|
|
on: [merge_group, pull_request]
|
2024-02-26 18:22:21 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Tests (Rate-Limiter)
|
2024-02-29 07:36:30 +00:00
|
|
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-rate-limiter' }}
|
2024-02-26 18:22:21 +00:00
|
|
|
steps:
|
2024-02-29 22:23:30 +00:00
|
|
|
- name: Fix workspace permissions
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
2024-02-26 18:22:21 +00:00
|
|
|
- name: Code checkout
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-26 18:22:21 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Run rate-limiter integration tests
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-26 18:22:21 +00:00
|
|
|
timeout-minutes: 10
|
|
|
|
run: scripts/dev_cli.sh tests --integration-rate-limiter
|
2024-02-29 07:36:30 +00:00
|
|
|
- name: Skipping build for PR
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
run: echo "Skipping build for PR"
|