Skip to content

Add e2e watch role for deployment RBAC in tests #30

Add e2e watch role for deployment RBAC in tests

Add e2e watch role for deployment RBAC in tests #30

Workflow file for this run

name: Lint
on:
push:
pull_request:
jobs:
lint:
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-file: go.mod
- name: Run go fmt
run: |
make fmt
if [ -n "$(git status --porcelain)" ]; then
echo "::error::Code is not formatted. Please run 'make fmt' locally and commit the changes."
git diff
exit 1
fi
- name: Run go vet
run: make vet
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.7.2