2024-04-05 19:39:00 +00:00
|
|
|
name: Cloud Hypervisor Tests (Rate-Limiter)
|
|
|
|
on: [merge_group, pull_request]
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Tests (Rate-Limiter)
|
2024-09-16 17:23:26 +00:00
|
|
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'garm-jammy-16' }}
|
2024-04-05 19:39:00 +00:00
|
|
|
env:
|
|
|
|
AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }}
|
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-09-16 17:23:26 +00:00
|
|
|
- name: Install Docker
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install ca-certificates curl gnupg
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
|
|
sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg
|
|
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt install -y docker-ce docker-ce-cli
|
2024-04-05 19:39:00 +00:00
|
|
|
- name: Run rate-limiter integration tests
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
timeout-minutes: 10
|
|
|
|
run: scripts/dev_cli.sh tests --integration-rate-limiter
|
|
|
|
- name: Skipping build for PR
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
run: echo "Skipping build for PR"
|