Exclude CRD description from embedded refs #5
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: pull request checks | |
on: | |
pull_request: | |
branches: ['*'] | |
jobs: | |
build-lint-test: | |
name: Build, lint, test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.20','1.21'] | |
steps: | |
- name: install make | |
run: sudo apt-get install make | |
- name: set up go 1.x | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: check format | |
run: make fmt && git add -A && git diff --exit-code | |
- name: build, lint, test | |
run: make build lint test | |
- name: Report coverage | |
if: ${{ matrix.go == '1.21' }} | |
uses: codecov/[email protected] | |
with: | |
files: ./cover.out | |
flags: unittests | |
fail_ci_if_error: false | |
bundle-check: | |
runs-on: ubuntu-latest | |
name: Checking bundle up-to-date | |
steps: | |
- name: install make | |
run: sudo apt-get install make | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: generate bundle | |
run: make update-bundle | |
- name: check bundle clean state | |
run: git add -A && git diff HEAD -I "operator-sdk-v" --exit-code |