Skip to content

Commit d4bd357

Browse files
committed
fix(ci): move from Fedora to Ubuntu
Previously, we were using Fedora as Ubuntu did not contain the updated binaries for bats. CRIU was also outdated on the main repositories. Due to a recent change in the way GitHub runners handle privileged containers, the old Fedora setup no longer works. This is the easiest solution that allows us to retain sudo-based local tests that can also be reused on CI. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
1 parent adeb107 commit d4bd357

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
container:
9-
image: registry.fedoraproject.org/fedora:latest
10-
options: --privileged --cap-add=NET_ADMIN --cap-add=NET_RAW -v /lib/modules:/lib/modules
118
steps:
129
- uses: actions/checkout@v4
10+
- name: Install Go
11+
uses: actions/setup-go@v5
12+
with:
13+
check-latest: true
1314
- name: Install tools
1415
run: |
15-
sudo dnf -y install ShellCheck bats golang criu asciidoctor iptables iproute kmod jq bash bash-completion zsh fish
16+
# Add PPA for CRIU
17+
sudo add-apt-repository ppa:criu/ppa
18+
sudo apt-get update
19+
sudo apt-get install -qqy shellcheck bats criu asciidoctor iptables iproute2 kmod jq bash bash-completion zsh fish
1620
sudo modprobe -va ip_tables ip6table_filter nf_conntrack nf_conntrack_netlink
1721
- name: Run make shellcheck
1822
run: make shellcheck

0 commit comments

Comments
 (0)