Rework condition handling during settings application and BMC reset #2355
This file contains hidden or 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: Tests | |
| on: | |
| pull_request: | |
| types: [assigned, opened, synchronize, reopened] | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install lldpd | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y lldpd | |
| - name: Start lldpd | |
| run: | | |
| sudo systemctl start lldpd | |
| - name: Clone the code | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Running Tests | |
| run: | | |
| sudo --preserve-env=GOROOT,GOPATH,PATH go mod tidy | |
| sudo --preserve-env=GOROOT,GOPATH,PATH make test-only | |
| test-alerts: | |
| name: Test Prometheus alert rules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Check alert rules syntax | |
| run: make check-alerts | |
| - name: Run alert rule tests | |
| run: make test-alerts |