-
Notifications
You must be signed in to change notification settings - Fork 3.5k
32 lines (28 loc) · 1014 Bytes
/
lint-jsonnet.yml
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
---
name: lint-jsonnet
on: [pull_request]
# pull_request:
# paths: "production/**"
jobs:
check-mixin:
name: Check mixin jsonnet files
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: setup jsonnet
run: |
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected]
- name: run linting
run: make BUILD_IN_CONTAINER=false lint-jsonnet
- name: check compiled mixin has been updated
run: |
make BUILD_IN_CONTAINER=false loki-mixin-check