feat(build): Run go vet as a step in the GitHub Actions workflow

This commit is contained in:
Vincent Ambo 2021-04-30 13:01:16 +02:00 committed by Vincent Ambo
parent aebda83409
commit 8557914fe8
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@ jobs:
run: nix-env -f '<nixpkgs>' -iA go
- name: Check formatting
run: "test -z $(gofmt -l .)"
- name: Run `go vet`
run: "go vet ./..."
- name: Build Nixery
run: "nix-build --no-out-link"
- name: Run integration test

View File

@ -90,7 +90,7 @@ func channelMetadata(channel string) meta {
commit, err := ioutil.ReadAll(commitResp.Body)
failOn(err, "failed to read commit from response")
if commitResp.StatusCode != 200 {
log.Fatalf("non-success status code when fetching commit: %s", string(commit), commitResp.StatusCode)
log.Fatalf("non-success status code when fetching commit: %s (%v)", string(commit), commitResp.StatusCode)
}
return meta{