Merge pull request #948 from kubernetes-monitoring/dependabot/go_modu… #509
This file contains 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
name: ci | |
on: | |
- push | |
- pull_request | |
jobs: | |
matrix: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Alerts linter | |
run: make --always-make alerts-lint | |
- name: Generate yaml | |
run: make --always-make generate && git diff --exit-code | |
- name: Grafana dashboard linter | |
run: make --always-make dashboards-lint | |
- name: Jsonnet formatter | |
run: make --always-make fmt && git diff --exit-code | |
- name: Markdown formatter | |
run: make --always-make markdownfmt && git diff --exit-code | |
- name: Markdown linter | |
run: make --always-make vale && git diff --exit-code | |
- name: Jsonnet linter | |
run: make --always-make jsonnet-lint | |
- name: Unit tests | |
run: make --always-make test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: scripts/go.mod | |
cache-dependency-path: scripts/go.sum | |
- run: ${{ matrix.run }} |