Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,59 @@ jobs:
- name: Run golangci-lint
if: steps.changes.outputs.lint == 'true'
run: make lint

gofmt:
name: gofmt
runs-on: ubuntu-24.04

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Filter paths
id: changes
uses: dorny/paths-filter@v3
Comment on lines +44 to +53
with:
filters: |
gofmt:
- '**/*.go'
- 'Makefile'
- '.github/workflows/lint.yml'

- name: Set up Go
if: steps.changes.outputs.gofmt == 'true'
uses: actions/setup-go@v5
with:
go-version: "1.24"

- name: Check Go formatting
if: steps.changes.outputs.gofmt == 'true'
run: make fmt-check

helm:
name: helm-lint
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Filter paths
id: changes
uses: dorny/paths-filter@v3
Comment on lines +67 to +80
with:
filters: |
helm:
- 'manifests/charts/base/**'
- 'Makefile'
- '.github/workflows/lint.yml'

- name: Set up Helm
if: steps.changes.outputs.helm == 'true'
uses: azure/setup-helm@v4
Comment on lines +88 to +90

- name: Lint Helm chart
if: steps.changes.outputs.helm == 'true'
run: make helm-lint
Comment on lines +92 to +94

- name: Render Helm chart
if: steps.changes.outputs.helm == 'true'
run: make helm-template > /tmp/agentcube-rendered.yaml
Comment on lines +96 to +98
Loading