Skip to content

Commit

Permalink
fix(ci): checkout before go setup
Browse files Browse the repository at this point in the history
In setup-go@v4 it changed to enabling caching by default which looks for
a go modules file to check the cache. This means that the checkout needs
to be processed before the setup-go action.
  • Loading branch information
aauren authored and mrueg committed Jul 2, 2023
1 parent 39ff9f6 commit 168a2b4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
name: ci-go-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

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

- name: Lint kube-router code
run: |
make lint
Expand All @@ -41,15 +41,15 @@ jobs:
name: ci-unit-tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

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

- name: Run unit tests for kube-router
run: |
make test
Expand All @@ -61,15 +61,15 @@ jobs:
name: ci-build-kube-router
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

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

- name: Build kube-router
run: |
make kube-router
Expand Down Expand Up @@ -177,15 +177,15 @@ jobs:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

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

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down

0 comments on commit 168a2b4

Please sign in to comment.