test #16
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: alert tests | |
on: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Check alert rules | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: prom/prometheus:v2.47.1 | |
options: --entrypoint sh -v ${{ github.workspace }}:/tmp | |
run: | | |
promtool test | |
- name: Check alert rules (old) | |
uses: beatlabs/promtool-github-action@v0.0.2 | |
with: | |
cmd: 'test' | |
files: '**/tests.yaml' |