🐛 Fix: Prevent nil errors in log.Error to ensure proper logging and add custom linter to avoid this scenario in the future #2482
Workflow file for this run
This file contains hidden or 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
on: | |
pull_request: | |
paths: | |
- '.bingo/**' | |
- '.github/workflows/tilt.yaml' | |
- 'api/**' | |
- 'cmd/**' | |
- 'config/**' | |
- 'catalogd/**' | |
- 'internal/**' | |
- 'pkg/**' | |
- 'Tiltfile' | |
- '.tilt-support' | |
merge_group: | |
jobs: | |
tilt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: operator-controller | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "operator-controller/go.mod" | |
- name: Install Tilt | |
run: | | |
TILT_VERSION="0.33.3" | |
curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v$TILT_VERSION/tilt.$TILT_VERSION.linux.x86_64.tar.gz | \ | |
tar -xzv -C /usr/local/bin tilt | |
- name: Set up kind | |
run: | | |
cd operator-controller | |
make kind-cluster | |
- name: Test Tilt | |
run: | | |
cd operator-controller | |
tilt ci |