adding gh actions for promq tests if alerts directory is modified #9
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- examples/alerts/** | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'examples/alerts/**' | |
jobs: | |
promql-tests: | |
name: Promql 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: Debug - List changed files | |
run: | | |
echo "Changed files:" | |
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | |
# - name: Run Promql tests | |
# run: | | |
# make test-alerts |