Skip to content

NETOBSERV-2768: Implement DUMP_EVENTS_ON_FAILURE env var #5872

NETOBSERV-2768: Implement DUMP_EVENTS_ON_FAILURE env var

NETOBSERV-2768: Implement DUMP_EVENTS_ON_FAILURE env var #5872

Workflow file for this run

name: pull request checks
on:
pull_request:
branches: ['*']
permissions:
contents: read
jobs:
build-lint-test:
name: Build, lint, test
runs-on: ubuntu-latest
steps:
- name: install make
run: sudo apt-get install make
- name: set up go 1.x
uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: check format
run: make fmt && git add -A && git diff --exit-code
- name: build, lint, test
run: make build lint test
- name: check clean vendors
run: go mod vendor
- name: Report coverage
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: false
verbose: true
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@v6
with:
persist-credentials: false
- name: generate bundle
run: make update-bundle
- name: check bundle clean state
run: git add -A && git diff HEAD -I "operator-sdk-v" -I "createdAt" --exit-code
- if: ${{ failure() }}
name: print info
run: echo "::error::Bundle isn't in a clean state. Did you forget to run 'make update-bundle' ?"; exit 1
helm-check:
runs-on: ubuntu-latest
name: Checking helm up-to-date and valid
steps:
- name: install make
run: sudo apt-get install make
- name: checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: generate helm
run: make helm-update
- name: check helm clean state
run: git add -A && git diff HEAD --exit-code
- name: set up Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
with:
version: v3.17.0
- name: run helm lint
run: helm lint helm/