add systemd_triggered_by
label to container_info
metric to detect periodic jobs triggered by systemd timers
#59
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: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
GO: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- run: sudo apt install -y libsystemd-dev | |
- name: gofmt -l . | |
run: files=$(gofmt -l .); if [[ -n "$files" ]]; then echo "$files"; exit 1; fi | |
- name: goimports -l . | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
files=$(goimports -l .); if [[ -n "$files" ]]; then echo "$files"; exit 1; fi | |
- run: go vet ./... | |
- run: go test ./... | |
- run: go build -mod=readonly . |