-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding gh actions for promq tests if alerts directory is modified (#741)
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Alerts Promql tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- examples/alerts/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'examples/alerts/**' | ||
jobs: | ||
promql-tests: | ||
name: Promql Unit tests | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Set up Go 1.21.x | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21.x | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Run Promql tests | ||
run: | | ||
make test-alerts |
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
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