Skip to content

Commit 3e4d78f

Browse files
authored
Merge pull request #37 from KIT-MRT/test_released_deb_package
Fix release tests
2 parents 717657e + 417ec26 commit 3e4d78f

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

.github/workflows/bump-version-and-create-release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,20 @@ jobs:
9696
tag: ${{ needs.compute-version.outputs.new_tag }}
9797
body: ${{ github.event.pull_request.body }}
9898

99+
100+
build-and-run-release-tests:
101+
needs: [compute-version, create-release]
102+
runs-on: ubuntu-latest
103+
steps:
104+
- name: Build release test Docker image
105+
uses: docker/build-push-action@v6
106+
with:
107+
build-args: |
108+
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/download/${{ needs.compute-version.outputs.new_tag }}
109+
push: false
110+
tags: release_tester
111+
target: release_test
112+
113+
- name: Run unit tests with/against released version
114+
run: |
115+
docker run --rm release_tester

.github/workflows/run-release-tests.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ RUN cmake .. && \
4848

4949
FROM base AS release_test
5050

51+
ARG RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/latest/download/
52+
5153
# This downloads the latest util_caching debian release and adds it to the docker image
5254
# This "bloats" the image. But otherwise, we'd have to installing wget and ca-certificates
5355
# temporarily to download and install the package in one docker layer…
54-
ADD https://github.com/KIT-MRT/util_caching/releases/latest/download/libutil-caching-dev.deb /tmp/debfiles/
56+
ADD ${RELEASE_DOWNLOAD_URL}/libutil-caching-dev.deb /tmp/debfiles/
5557

5658
# Install util_caching from release debian package
5759
RUN dpkg -i /tmp/debfiles/*.deb && \

0 commit comments

Comments
 (0)