Skip to content

Commit

Permalink
Fix go.mod based workflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Feb 23, 2024
1 parent 8cf6368 commit d0bd74a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: go-mod verify
run: go mod verify

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3
with:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -62,15 +62,15 @@ jobs:
release-windows-2019:
runs-on: windows-2022
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -106,15 +106,15 @@ jobs:
release-windows-2022:
runs-on: windows-2022
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit d0bd74a

Please sign in to comment.