Skip to content

Commit 3a3f675

Browse files
committed
GitHub Actions: also run the test, not just build the test harness
1 parent 681f50e commit 3a3f675

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/manual.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- "master"
77

8+
env:
9+
TEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:test
10+
LATEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:latest
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -21,11 +25,23 @@ jobs:
2125
-
2226
name: Set up Docker Buildx
2327
uses: docker/setup-buildx-action@v2
28+
-
29+
name: Build and push
30+
uses: docker/build-push-action@v4
31+
with:
32+
context: .
33+
file: ./Dockerfile
34+
load: true
35+
tags: ${{ env.TEST_TAG }}
36+
-
37+
name: Test
38+
run: docker run --rm ${{ env.TEST_TAG }}
2439
-
2540
name: Build and push
2641
uses: docker/build-push-action@v4
2742
with:
2843
context: .
2944
file: ./Dockerfile
3045
push: true
31-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:latest
46+
tags: ${{ env.LATEST_TAG }}
47+

0 commit comments

Comments
 (0)