Skip to content

Commit

Permalink
cache binary for Operator API tests
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Aug 13, 2024
1 parent 20c542c commit ee0fdaf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -311,6 +332,7 @@ jobs:
- ui-assets
- reuse-golang-dependencies
- semgrep-static-code-analysis
- operator
runs-on: ubuntu-latest

strategy:
Expand All @@ -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: |
Expand Down

0 comments on commit ee0fdaf

Please sign in to comment.