Skip to content

Commit

Permalink
feat(ci): Add Prometheus test in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vmercierfr committed Nov 23, 2023
1 parent 96a7bfe commit 7a46a9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,20 @@ jobs:
- name: Run Kubeconform test
run: make kubeconform-test

prometheus-rules:
name: prometheus-rules
runs-on: ubuntu-latest
env:
PROMETHEUS_VERSION: 2.48.0
steps:
- uses: actions/checkout@v3

- name: Install Promtool (Prometheus)
run: |
curl -sSLo /tmp/prometheus.tar.gz "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-amd64.tar.gz" \
&& tar -C /tmp -xzvf /tmp/prometheus.tar.gz \
&& cp /tmp/prometheus-${PROMETHEUS_VERSION}.linux-amd64/promtool /usr/local/bin/promtool
- name: Prometheus test
run: make prometheus-test
2 changes: 1 addition & 1 deletion scripts/check_prometheus_rules.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Check Prometheus rules in chart are valid

Expand Down

0 comments on commit 7a46a9e

Please sign in to comment.