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