feat: Set metricpipeline status based on alerts #16
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: PR Code checks | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "release-*" | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: "./.github/template/setup-golang" | |
- name: Run tests | |
run: make test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: "./.github/template/setup-golang" | |
- name: Run lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
install-mode: binary | |
version: latest | |
args: --timeout=5m --config=./.golangci.yaml | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: "./.github/template/setup-golang" | |
- name: Run coverage check | |
run: make check-coverage |