Skip to content

Commit

Permalink
fix(ci): properly use setup-go@v4 cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Sep 2, 2023
1 parent 380fe5e commit 2f8b019
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Code
uses: actions/checkout@v3
- name: Check diff between gofmt and code
run: diff <(gofmt -d .) <(echo -n)

Expand All @@ -25,23 +25,23 @@ jobs:
matrix:
go-version: ["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
steps:
- name: Code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Code
uses: actions/checkout@v3
- run: go test -v -race ./...

lint:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Code
uses: actions/checkout@v3
- name: Go vet
run: go vet -x ./...

Expand Down

0 comments on commit 2f8b019

Please sign in to comment.