Skip to content

Commit

Permalink
github: add a test run workflow
Browse files Browse the repository at this point in the history
Now that we can properly run virtme-ng inside docker instances we can
test virtme-ng using a github workflow.

Add a simple "test run" workflow to run a v6.6 kernel using virtme-ng,
this test action will be triggered on push and pull requests.

Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
Andrea Righi committed Dec 21, 2023
1 parent a679416 commit 97f7c85
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run

on:
push:
pull_request:

jobs:
run:
runs-on: ubuntu-22.04
steps:
### DEPENDENCIES ###

# Hard turn-off interactive mode
- run: echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections

# Install dependencies
- run: sudo apt update
- run: apt install --yes git qemu-kvm udev iproute2 busybox-static coreutils python3-requests libvirt-clients kbd kmod file rsync zstd udev

### END DEPENDENCIES ###

# Checkout git repository
- uses: actions/checkout@v4

# Run `uname -r` using a vanilla v6.6 kernel
- run: ./vng -r v6.6 -- uname -r

0 comments on commit 97f7c85

Please sign in to comment.