test: Makefile target, CI and documentation for alert unit tests #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |