Skip to content

Bump github.com/prometheus/client_golang from 1.7.0 to 1.11.1 #39

Bump github.com/prometheus/client_golang from 1.7.0 to 1.11.1

Bump github.com/prometheus/client_golang from 1.7.0 to 1.11.1 #39

Workflow file for this run

name: Go build and test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
version: ["1.19", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: true
- name: Build
run: go build -v ./...
test:
strategy:
matrix:
version: ["1.19", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: true
- name: Unit tests
run: go test -v ./...
race-condition:
strategy:
matrix:
version: ["1.19", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: true
- name: Test race condition
run: go test -race -vet=off ./...
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
push: false
cache-from: type=gha
cache-to: type=gha,mode=max