This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
feat: Added HA-Peer status metric #659
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: Go | |
on: | |
push: | |
branches: | |
- '**' | |
- '!master' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ^1.18 | |
id: go | |
- name: Get dependencies | |
run: make get-dependencies | |
- name: Ensure that all files are properly formatted | |
run: | | |
FILES=$(go run golang.org/x/tools/cmd/goimports@latest -w -l .) | |
if [ -n "${FILES}" ]; then | |
printf "Following files are not formatted: \n%s" "$FILES" | |
exit 1 | |
fi | |
- name: GO vet | |
run: make vet | |
- name: Test | |
run: make test | |
- name: Test building | |
run: make build |