Skip to content

Commit df916d5

Browse files
adrianreberclaude
andcommitted
workflows: switch to Fedora container for tests and coverage
Use Fedora container instead of Ubuntu for the coverage and test jobs. This allows installing CRIU directly from the distribution without needing a PPA. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Adrian Reber <areber@redhat.com>
1 parent 8404667 commit df916d5

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ permissions:
88
jobs:
99
coverage:
1010
runs-on: ubuntu-latest
11+
container:
12+
image: fedora:latest
13+
options: --privileged
1114
steps:
1215
- name: checkout
1316
uses: actions/checkout@v4
@@ -16,13 +19,9 @@ jobs:
1619
fetch-depth: 0
1720
- name: Install tools
1821
run: |
19-
sudo apt-get install -qqy bats iptables iproute2 jq
20-
# Add PPA for CRIU
21-
sudo add-apt-repository ppa:criu/ppa
22-
sudo apt-get update
23-
sudo apt-get install -qqy criu
22+
dnf install -y bats iptables iproute jq criu golang make
2423
- name: Run make coverage
25-
run: sudo -E make coverage
24+
run: make coverage
2625

2726
- name: Upload coverage reports to Codecov
2827
uses: codecov/codecov-action@v4

.github/workflows/tests.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@ permissions:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
container:
12+
image: fedora:latest
13+
options: --privileged
1114
steps:
1215
- uses: actions/checkout@v4
13-
- name: Install Go
14-
uses: actions/setup-go@v5
15-
with:
16-
check-latest: true
1716
- name: Install tools
1817
run: |
19-
# Add PPA for CRIU
20-
sudo add-apt-repository ppa:criu/ppa
21-
sudo apt-get update
22-
sudo apt-get install -qqy shellcheck bats criu asciidoctor iptables iproute2 kmod jq bash bash-completion zsh fish
23-
sudo modprobe -va ip_tables ip6table_filter nf_conntrack nf_conntrack_netlink
18+
dnf install -y golang make ShellCheck bats criu rubygem-asciidoctor iptables iproute kmod jq bash bash-completion zsh fish
19+
modprobe -va ip_tables ip6table_filter nf_conntrack nf_conntrack_netlink
2420
- name: Run make shellcheck
2521
run: make shellcheck
2622
- name: Run make all
2723
run: make all
2824
- name: Run make test
29-
run: sudo -E make test
25+
run: make test
3026
- name: Run make test-junit
31-
run: sudo -E make test-junit
27+
run: make test-junit
3228
- name: Upload Test Results
3329
# To display test results from forked repositories they need to
3430
# be uploaded and then analyzed.

0 commit comments

Comments
 (0)