style: alert log level #25
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 Build and Merge Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Make controller-gen | |
run: make controller-gen | |
- name: Build | |
env: | |
APP: probe-master | |
run: make build | |
- name: Check build status | |
run: | | |
if [ $? -ne 0 ]; then | |
echo "Build failed. PR cannot be merged." | |
exit 1 | |
fi |