This commit is contained in:
1 parent
b5aa2d7a59
commit
8af98acd66
1 file changed
+25
@@ -0,0 +1,25 @@
|
||||
name: test
|
||||
on: push
|
||||
jobs:
|
||||
test:
|
||||
runs-on: linux
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Packages
|
||||
env:
|
||||
AUTH: "Authorization: token ${{ gitea.token }}"
|
||||
PKG: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic
|
||||
run: |
|
||||
echo hi > b.txt
|
||||
echo "linked, new version:"; curl -s -o /dev/null -w '%{http_code}\n' -H "$AUTH" --upload-file b.txt "$PKG/runneros-linktest/2/b.txt"
|
||||
echo "linked, delete version 1:"; curl -s -o /dev/null -w '%{http_code}\n' -H "$AUTH" -X DELETE "$PKG/runneros-linktest/1"
|
||||
echo "new package:"; curl -s -o /dev/null -w '%{http_code}\n' -H "$AUTH" --upload-file b.txt "$PKG/runneros-newtest/1/b.txt"
|
||||
echo "basic auth, new package:"; curl -s -o /dev/null -w '%{http_code}\n' -u "x:${{ gitea.token }}" --upload-file b.txt "$PKG/runneros-newtest2/1/b.txt"
|
||||
- name: KVM
|
||||
run: |
|
||||
ls -l /dev/kvm
|
||||
dnf install -yq qemu-system-x86-core kernel-core
|
||||
timeout 120 qemu-system-x86_64 -accel kvm -cpu host -m 512 -nographic -no-reboot \
|
||||
-kernel /lib/modules/*/vmlinuz -append "console=ttyS0 panic=-1" | grep -E 'Hypervisor detected|KVM|Kernel panic' | head -5
|
||||
Reference in new issue
Block a user