* Update Go version to 1.24 * Update golangci-lint version * Add envtest to tool * Add dashboard linter as a tool * Uset t.Cleanup --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
38 lines
902 B
YAML
38 lines
902 B
YAML
name: Lint dashboards
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'charts/fission-all/dashboards/**.json'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'charts/fission-all/dashboards/**.json'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint-dashboards:
|
|
runs-on: ubuntu-24.04
|
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
- name: Run dashboard linter
|
|
run: ./hack/lint-dashboards.sh
|