Skip to content

Bump github.com/prometheus/common from 0.44.0 to 0.45.0 #166

Bump github.com/prometheus/common from 0.44.0 to 0.45.0

Bump github.com/prometheus/common from 0.44.0 to 0.45.0 #166

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request: ~
# Allow job to be triggered manually.
workflow_dispatch:
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: "Go ${{ matrix.go-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go-version: [ 1.20.x, 1.21.x ]
fail-fast: true
steps:
- name: Acquire sources
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Apply module cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Lint code using gofmt
run: |
./devtools/check-gofmt
- name: Invoke tests
run: |
go test -v