Skip to content

Commit 59e36ba

Browse files
committed
Add docker build to test ci
1 parent a6269b9 commit 59e36ba

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,21 @@ jobs:
1616
with:
1717
go-version: 1.17
1818

19+
- name: Check formatting
20+
run: go fmt ./... && git diff --exit-code
21+
1922
- name: Build
2023
run: go build -v ./...
2124

2225
- name: Test
2326
run: go test -v ./...
2427

25-
- name: Check formatting
26-
run: go fmt ./... && git diff --exit-code
28+
- name: Set up Docker Build
29+
uses: docker/setup-buildx-action@v1
30+
31+
- name: Build using docker
32+
uses: docker/build-push-action@v2
33+
with:
34+
context: ./
35+
file: ./Dockerfile
36+
push: false

0 commit comments

Comments
 (0)