From ee0fdafb056b0c08c173f16a125d568f7aa43902 Mon Sep 17 00:00:00 2001 From: pjuarezd Date: Tue, 13 Aug 2024 15:37:33 -0700 Subject: [PATCH] cache binary for Operator API tests Signed-off-by: pjuarezd --- .github/workflows/ui.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ui.yaml b/.github/workflows/ui.yaml index cad5da9841d..bb5f9084bb2 100644 --- a/.github/workflows/ui.yaml +++ b/.github/workflows/ui.yaml @@ -15,6 +15,27 @@ concurrency: cancel-in-progress: true jobs: + operator: + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + matrix: + go-version: [ 1.21.x ] + os: [ ubuntu-latest ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - uses: actions/cache@v3 + name: Operator Binary Cache + with: + path: | + ./minio-operator + key: ${{ runner.os }}-ui-binary-${{ github.run_id }} + - name: Operator Binary + run: | + make operator semgrep-static-code-analysis: timeout-minutes: 30 @@ -311,6 +332,7 @@ jobs: - ui-assets - reuse-golang-dependencies - semgrep-static-code-analysis + - operator runs-on: ubuntu-latest strategy: @@ -327,6 +349,12 @@ jobs: go-version: ${{ matrix.go-version }} cache: true id: go + - uses: actions/cache@v3 + name: Operator Binary Cache + with: + path: | + ./minio-operator + key: ${{ runner.os }}-ui-binary-${{ github.run_id }} - name: Operator API Tests run: |