From 1c38315a15e1b768ad62aa12e731ccdcaffdd435 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 11 Jan 2024 14:17:23 +0100 Subject: [PATCH] retry --- .github/workflows/controller-ci.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/controller-ci.yaml b/.github/workflows/controller-ci.yaml index 373bf65a7d..4c16d1bf38 100644 --- a/.github/workflows/controller-ci.yaml +++ b/.github/workflows/controller-ci.yaml @@ -36,18 +36,26 @@ jobs: - run: PATH=$PATH:$GOPATH/bin make build unit-test: name: Unit tests - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 defaults: run: shell: bash working-directory: controller + timeout-minutes: 5 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 + - name: Checkout + uses: actions/checkout@v4.1.1 + - name: Set up Go + uses: actions/setup-go@v4.1.0 with: go-version-file: controller/go.mod - check-latest: true - - run: PATH=$PATH:$GOPATH/bin make test + cache: true + - name: Download dependencies + run: go mod download + - name: Download tools + run: PATH=$PATH:$GOPATH/bin make tools + - name: Test + run: PATH=$PATH:$GOPATH/bin make test lint: name: Lint runs-on: ubuntu-latest