Skip to content

run unit and conformance tests #2387

run unit and conformance tests

run unit and conformance tests #2387

Workflow file for this run

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