fix(deps): update github.com/openshift/library-go digest to fc58151 #4744
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: operator build | |
on: | |
push: | |
paths: | |
- 'operator/**' | |
branches: [ main ] | |
pull_request: | |
paths: | |
- 'operator/**' | |
jobs: | |
docs: | |
name: docs | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21'] | |
steps: | |
- name: Install make | |
run: sudo apt-get install make | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Check generated docs | |
working-directory: ./operator | |
run: | | |
make docs/operator/api.md docs/operator/feature-gates.md | |
git diff --exit-code | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21'] | |
steps: | |
- name: Install make | |
run: sudo apt-get install make | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout=4m | |
working-directory: ./operator | |
- name: Check prometheus rules | |
working-directory: ./operator | |
run: make lint-prometheus | |
build-manager: | |
name: Build Manager | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21'] | |
steps: | |
- name: Install make | |
run: sudo apt-get install make | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Build Manager | |
working-directory: ./operator | |
run: |- | |
make manager && git diff --exit-code | |
build-broker: | |
name: Build Broker | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21'] | |
steps: | |
- name: Install make | |
run: sudo apt-get install make | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Build Broker | |
working-directory: ./operator | |
run: |- | |
make bin/loki-broker && git diff --exit-code | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21'] | |
steps: | |
- name: Install make | |
run: sudo apt-get install make | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
working-directory: ./operator | |
run: go test -coverprofile=profile.cov ./... | |
- name: Run prometheus rule tests | |
working-directory: ./operator | |
run: make test-unit-prometheus | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
working-directory: ./operator | |
path-to-profile: profile.cov | |
flag-name: Go-${{ matrix.go }} | |
shallow: true |