run unit and conformance tests #2430
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-test | |
run-name: run unit and conformance tests | |
on: [pull_request] | |
jobs: | |
promtool-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: run promtool unit tests | |
run: make test-rules | |
inhibition-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: run inhibition tests | |
run: make test-inhibitions | |
opsrecipe-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Clone private opsrecipe repo | |
run: | | |
git clone --depth 1 --single-branch -b main -q https://oauth2:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/giantswarm/giantswarm.git | |
- name: Clone public opsrecipe repo | |
run: | | |
git clone --depth 1 --single-branch -b main -q https://oauth2:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/giantswarm/handbook.git | |
- name: run opsrecipe tests | |
env: | |
OPSRECIPES_DIR: ./giantswarm | |
run: make test-ci-opsrecipes | |
prometheus-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: run pint linter | |
run: make pint |