swap the order of actions/checkout@v3 and actions/setup-go@v4

This commit is contained in:
goldeneggg 2023-06-03 21:59:37 +09:00 committed by Márk Sági-Kazár
parent 21a7fd828e
commit 0520e750b5

View file

@ -20,14 +20,14 @@ jobs:
goarch: ppc64
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: go build .
env:
@ -48,14 +48,14 @@ jobs:
GOFLAGS: -mod=readonly
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: go test -race -v ./...
if: runner.os != 'Windows'
@ -71,14 +71,14 @@ jobs:
GOFLAGS: -mod=readonly
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
uses: golangci/golangci-lint-action@v3
with: