Skip to content

Commit 900c9c0

Browse files
authored
Merge pull request #96 from partyoffice/fix-build
Fix build
2 parents a6269b9 + 72d9503 commit 900c9c0

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-alpine AS builder
1+
FROM golang:1.18 AS builder
22

33
WORKDIR /go/src/github.com/partyoffice/spotifete
44
COPY . .

0 commit comments

Comments
 (0)