generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.31 KB
/
alert_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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