diff --git a/.github/workflows/test-race.yml b/.github/workflows/test-race.yml index 642ca23bbdcf..a16d82f107fd 100644 --- a/.github/workflows/test-race.yml +++ b/.github/workflows/test-race.yml @@ -48,6 +48,9 @@ jobs: **/**.go **/go.mod **/go.sum + - name: Update deps + run: go mod tidy + - name: Build run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build @@ -105,6 +108,8 @@ jobs: with: name: "${{ github.sha }}-${{ matrix.part }}" if: env.GIT_DIFF + - name: Update deps + run: go mod tidy - name: test & coverage report creation run: | xargs --arg-file=pkgs.txt.part.${{ matrix.part }} go test -mod=readonly -timeout 30m -race -tags='cgo ledger test_ledger_mock' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec9989e055b6..04c69d3177d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,9 @@ jobs: **/**.go **/go.mod **/go.sum + - name: Update deps + run: go mod tidy + - name: Build run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build @@ -56,6 +59,8 @@ jobs: **/**.go go.mod go.sum + - name: Update deps + run: go mod tidy - name: Run submodule tests and create test coverage profile. # GIT_DIFF is passed to the scripts run: bash scripts/module-tests.sh @@ -191,6 +196,8 @@ jobs: **/**.go go.mod go.sum + - name: Update deps + run: go mod tidy - name: test rosetta run: | make test-rosetta @@ -211,6 +218,8 @@ jobs: **/**.go go.mod go.sum + - name: Update deps + run: go mod tidy - name: start localnet run: | make clean localnet-start @@ -252,6 +261,8 @@ jobs: **/**.go go.mod go.sum + - name: Update deps + run: go mod tidy - uses: actions/cache@v3 with: path: ~/go/bin