Skip to content

test: Makefile target, CI and documentation for alert unit tests #13

test: Makefile target, CI and documentation for alert unit tests

test: Makefile target, CI and documentation for alert unit tests #13

name: Run prometheus unit tests
on:
pull_request:
paths:
- 'config/monitoring/prometheus/**'
- 'tests/prometheus_unit_tests/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Install Promtool
run: |
sudo apt-get update && sudo apt-get install -y prometheus
- name: Run prometheus-unit-tests
run : make test-alerts