workflow: use debian container for test workflow to ensure dependencies are available
This commit is contained in:
parent
f91125ec9f
commit
0c8e9a3ac3
16
.github/workflows/install-test.yml
vendored
16
.github/workflows/install-test.yml
vendored
@ -9,6 +9,8 @@ name: Test Patches - Post Build
|
|||||||
# Wired via workflow_run, so it fires for builds on ANY branch/PR. (GitHub always
|
# Wired via workflow_run, so it fires for builds on ANY branch/PR. (GitHub always
|
||||||
# runs the default-branch copy of this file, so it activates once merged to main.)
|
# runs the default-branch copy of this file, so it activates once merged to main.)
|
||||||
|
|
||||||
|
name: Test Patches - Post Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Test Release Build"]
|
workflows: ["Test Release Build"]
|
||||||
@ -16,13 +18,21 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
actions: read # required to download the triggering run's artifact
|
actions: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
patch-install-test:
|
patch-install-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:trixie
|
||||||
if: github.event.workflow_run.conclusion == 'success'
|
if: github.event.workflow_run.conclusion == 'success'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install base tools
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates git sudo wget xz-utils dpkg
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download deb from the build run
|
- name: Download deb from the build run
|
||||||
@ -38,7 +48,7 @@ jobs:
|
|||||||
run: bash src/Scripts/test/fetch-proxmox-files.sh
|
run: bash src/Scripts/test/fetch-proxmox-files.sh
|
||||||
|
|
||||||
- name: Install built package
|
- name: Install built package
|
||||||
run: sudo apt-get install -y ./deb/*.deb
|
run: apt-get install -y ./deb/*.deb
|
||||||
|
|
||||||
- name: Test all mods
|
- name: Test all mods
|
||||||
run: sudo bash src/Scripts/test/test-mods.sh all
|
run: bash src/Scripts/test/test-mods.sh all
|
||||||
Loading…
Reference in New Issue
Block a user