Skip to content

Commit b94348a

Browse files
committed
refactor: Add check for loki
1 parent ac0ae70 commit b94348a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate Loki Config
2+
3+
on:
4+
push:
5+
paths:
6+
- 'stg/loki/config/**'
7+
- 'prod/loki/config/**'
8+
- '.github/workflows/validate-loki-config.yml'
9+
10+
jobs:
11+
validate:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
env: [stg, prod]
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Validate Loki config (${{ matrix.env }})
20+
run: |
21+
docker run --rm \
22+
-v "$PWD:/work" -w /work \
23+
grafana/loki:3.0.1 \
24+
loki -config.file=${{ matrix.env }}/loki/config/config.yml -verify-config

0 commit comments

Comments
 (0)