mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
.github: run regression tests as part of release workflow
Add an x86_64 regression test job to release.yml that runs after the build and gates publishing — the release job now requires both build and test to succeed. Update test.yml's artifact restore step to use a glob so it handles both the unversioned CI artifact name (infix-x86_64.tar.gz) and the versioned release artifact name (infix-x86_64-26.04.0.tar.gz). Fixes #1392 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -40,9 +40,16 @@ jobs:
|
||||
version: ${{ needs.set-version.outputs.version }}
|
||||
use_cache: true
|
||||
|
||||
test:
|
||||
needs: build
|
||||
uses: ./.github/workflows/test.yml
|
||||
with:
|
||||
target: x86_64
|
||||
name: infix
|
||||
|
||||
release:
|
||||
name: Release Infix ${{ github.ref_name }}
|
||||
needs: build
|
||||
needs: [build, test]
|
||||
runs-on: [self-hosted, release]
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -105,10 +105,11 @@ jobs:
|
||||
|
||||
ls -l
|
||||
mkdir -p output
|
||||
mv ${name}-${target}.tar.gz output/
|
||||
tarfile=$(ls ${name}-${target}*.tar.gz | head -1)
|
||||
mv "$tarfile" output/
|
||||
cd output/
|
||||
tar xf ${name}-${target}.tar.gz
|
||||
ln -s ${name}-${target} images
|
||||
tar xf "$tarfile"
|
||||
ln -s "${tarfile%.tar.gz}" images
|
||||
|
||||
- name: Regression Test ${{ env.TARGET }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user