From a53496b53ab51273eef310631c2dbda27f447e40 Mon Sep 17 00:00:00 2001 From: pjuarezd Date: Tue, 13 Aug 2024 18:40:26 -0700 Subject: [PATCH] UI test should be using `compile-binary` Signed-off-by: pjuarezd --- .github/workflows/ui.yaml | 40 +++++++++------------------------------ 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ui.yaml b/.github/workflows/ui.yaml index bb5f9084bb2..35c97b13d60 100644 --- a/.github/workflows/ui.yaml +++ b/.github/workflows/ui.yaml @@ -15,28 +15,6 @@ 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 name: "semgrep checks" @@ -149,12 +127,6 @@ 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 }}-binary-${{ github.run_id }} - uses: actions/cache@v3 id: assets-cache name: Assets Cache @@ -168,6 +140,12 @@ jobs: GOOS: linux run: | make binary + - uses: actions/cache/save@v3 + name: Save Operator Binary + with: + path: | + ./minio-operator + key: ${{ runner.os }}-ui-binary-${{ github.run_id }} @@ -221,7 +199,7 @@ jobs: with: path: | ./minio-operator - key: ${{ runner.os }}-binary-${{ github.run_id }} + key: ${{ runner.os }}-ui-binary-${{ github.run_id }} # Runs a set of commands using the runners shell - name: Start Kind for Operator UI @@ -258,7 +236,7 @@ jobs: with: path: | ./minio-operator - key: ${{ runner.os }}-binary-${{ github.run_id }} + key: ${{ runner.os }}-ui-binary-${{ github.run_id }} # Runs a set of commands using the runners shell - name: Start Kind for Operator UI @@ -332,7 +310,7 @@ jobs: - ui-assets - reuse-golang-dependencies - semgrep-static-code-analysis - - operator + - compile-binary runs-on: ubuntu-latest strategy: