Skip to content

Refactor operatorcontext #15

Refactor operatorcontext

Refactor operatorcontext #15

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: Setup golines
run: go install github.com/segmentio/golines@latest
- name: go mod tidy
run: go mod tidy
- name: Build
run: make
- name: Test
run: make test
- name: Lint
run: make lint
- name: Formatting
run: if [ "$(golines -m 120 --ignore-generated --dry-run . | wc -l)" -gt 0 ]; then exit 1; fi