Skip to content

Commit b63ff6d

Browse files
author
Bryan Sieber
committed
Adding test-build workflow
1 parent 71c434f commit b63ff6d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test-build.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run tests
2+
3+
on: pull_request
4+
5+
jobs:
6+
run_test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Build test image
14+
uses: docker/build-push-action@v2
15+
with:
16+
context: .
17+
file: infra/Dockerfile
18+
push: false
19+
target: "test"
20+
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
21+
22+
- name: Run tests
23+
run: |-
24+
docker run --rm \
25+
ghcr.io/${{ github.repository }}:${{ github.sha }}

0 commit comments

Comments
 (0)