-
Notifications
You must be signed in to change notification settings - Fork 34
36 lines (34 loc) · 1.35 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: cloud-utils ci
on: [push, pull_request]
jobs:
tox:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v4
- name: Run tox
run: tox
test:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install lvm2 fdisk gdisk qemu-utils busybox
- name: Git checkout
uses: actions/checkout@v4
- name: Run tests
# SKIP growpart-lvm test that does not work on github c-i
run: sudo SKIP=growpart-lvm PATH=$PWD/bin:$PATH ./test/run-all
- name: Run tests against BusyBox-based minimal environment
run: |
mkdir /tmp/busybox-bin
busybox --install -s /tmp/busybox-bin
ln -s $(command -v flock mkfs.ext4 qemu-img qemu-nbd resize2fs sfdisk sgdisk) /tmp/busybox-bin
# Skip growpart: needs BusyBox >= 1.31, not available in Ubuntu yet.
# Skip mic: needs BusyBox >= 1.31, not available in Ubuntu yet.
sudo SKIP=mic,growpart,growpart-lvm PATH=$PWD/bin:/tmp/busybox-bin ./test/run-all