Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CodeQL
on: [push, pull_request]
on: pull_request

jobs:
analyze:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Test
on:
pull_request:

permissions: {}

jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# TODO: read from bots test map
test_os:
- centos-9-bootc
- fedora-43

steps:
- name: Set up /dev/kvm
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm --settle
ls -l /dev/kvm

- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Start tasks container
run: |
podman run -d --rm --name tasks \
--user github \
--init \
--device /dev/kvm \
--shm-size=512m \
--env TEST_OS=${{ matrix.test_os }} \
--env HOME=/tmp/home \
-v ${{ github.workspace }}:/workspace:U \
-w /workspace \
$(< .cockpit-ci/container) sh -c 'sleep infinity'

- name: Create home dir
run: podman exec tasks mkdir -p /tmp/home

# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- name: Pacify git's permission check
run: podman exec tasks git config --global --add safe.directory /workspace

- name: Build package and test VM
run: podman exec tasks make prepare-check

- name: Run integration tests
run: podman exec tasks make check
Loading