Skip to content

Commit

Permalink
Remove go vet test block, disable concurrent runs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeire committed Aug 23, 2024
1 parent bba8bb0 commit c57d826
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ COPY pkg/ ./pkg
# Stage to test the code
FROM base AS test

RUN go vet -v
RUN go test -v
RUN go vet -v ./...
RUN go test -v ./...

# Stage to build the binary
FROM base AS build
Expand Down
7 changes: 0 additions & 7 deletions pkg/environment/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ func TestConfig(t *testing.T) {
// Make sure the env var is not accidentially set somewhere else
os.Unsetenv(envVarName)

// Just a small test for the vetting step in the build process
var m map[string]string
if false {
m[envVarName] = "foo"
2
}

tests := []struct {
name string
value string
Expand Down

0 comments on commit c57d826

Please sign in to comment.