Create or update StorageClusterPeer #1217
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests & Builds | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
clean-workdir: | |
name: Ensure Clean Workdir | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Scan for uncommitted changes | |
run: make ensure-clean-workdir | |
unit-test: | |
name: Unit Tests | |
needs: clean-workdir | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run unit tests | |
run: make unit-test | |
integration-test: | |
name: Integration Tests | |
needs: clean-workdir | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run integration tests | |
run: make test | |
build-operator: | |
name: Build Operator Image | |
needs: [unit-test,integration-test] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: make operator-build | |
validate-bundle: | |
name: Validate Operator Bundle | |
needs: clean-workdir | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Validate | |
run: make bundle | |
build-bundle: | |
name: Build Bundle Image | |
needs: validate-bundle | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: make bundle-build |