From ed8d4e5e5f68398eb893b7cc4cca4139965bc122 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Wed, 17 Jul 2024 13:22:31 -0500 Subject: [PATCH] Fix CI caching actions/setup-go needs go.sum to cache properly, so you should run actions/checkout first --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f7f438f..0000dd02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,13 +15,13 @@ jobs: os: ["ubuntu-latest"] runs-on: ${{ matrix.os }} steps: + - uses: actions/checkout@v4 + with: + submodules: true - name: Install Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v4 - with: - submodules: true - name: Check style run: | gofmt -w -s .