Skip to content

Commit

Permalink
Tidy up vet/test stuff
Browse files Browse the repository at this point in the history
Make them a little bit less verbose, and also run them against all
packages in the directory.

Also enable -race detector on tests.
  • Loading branch information
eest committed May 8, 2024
1 parent 1cae3ba commit b2fd75b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Install dependencies
run: go mod download
- name: Vet
run: go vet -v
run: go vet ./...
- name: Test
run: go test -v
run: go test -race ./...
- name: Build
run: go build -v
run: go build
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ WORKDIR /go/src/app
COPY . .

RUN go mod download
RUN go vet -v
RUN go test -v
RUN go vet ./...
RUN go test -race ./...

RUN CGO_ENABLED=0 go build -o /go/bin/dtm

Expand Down

0 comments on commit b2fd75b

Please sign in to comment.