Skip to content

Bump github.com/prometheus/prometheus from 0.41.0 to 0.52.1 #61

Bump github.com/prometheus/prometheus from 0.41.0 to 0.52.1

Bump github.com/prometheus/prometheus from 0.41.0 to 0.52.1 #61

Workflow file for this run

name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Check formatting
run: |
files=$(gofmt -l .)
if [[ $files != "" ]]; then
echo "Files need gofmt run on them:"
echo "$files"
exit 1
fi
- name: Build binary
run: |
go build ./cmd/...
- name: Check flags are documented
run: |
./test/flags-doc.sh
- name: Run tests
run: |
go test ./...