Skip to content

fix(deps): update module github.com/prometheus/client_golang to v1.20.5 #57

fix(deps): update module github.com/prometheus/client_golang to v1.20.5

fix(deps): update module github.com/prometheus/client_golang to v1.20.5 #57

Workflow file for this run

---
name: Go
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.50.0
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: go test -v ./...
- name: Build
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: --rm-dist --skip-publish --snapshot
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*
release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: GoReleaser
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}