From e9998cf19bde5b4ba2e4173f5de0e6d0f3bc4c35 Mon Sep 17 00:00:00 2001 From: Earlopain Date: Sun, 2 Jul 2023 14:22:51 +0200 Subject: [PATCH] fix(ci): properly use setup-go@v4 cache --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bb0ec5e2..229f4bc35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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.20" - - name: Code - uses: actions/checkout@v3 - name: Check diff between gofmt and code run: diff <(gofmt -d .) <(echo -n) @@ -25,23 +25,23 @@ jobs: matrix: go-version: ["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"] 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.20" - - name: Code - uses: actions/checkout@v3 - name: Go vet run: go vet -x ./...