-
Notifications
You must be signed in to change notification settings - Fork 600
34 lines (33 loc) · 973 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: 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 }}