Skip to content

Bump github.com/prometheus/client_golang from 1.12.2 to 1.23.0 #63

Bump github.com/prometheus/client_golang from 1.12.2 to 1.23.0

Bump github.com/prometheus/client_golang from 1.12.2 to 1.23.0 #63

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
test:
name: Linter and Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- name: Setup Golang
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version-file: go.mod
- name: Run Linter
run: make lint
- name: Run Tests
run: make test
- name: Calculate the next SemVer tag
id: tag
run: |
TAG="$(make calculate-next-semver)"
echo "tag=$TAG" >> $GITHUB_OUTPUT
tag:
name: SemVer Tag
needs: test
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
fetch-depth: 0
- name: Push SemVer Tag
uses: mathieudutour/github-tag-action@fcfbdceb3093f6d85a3b194740f8c6cec632f4e2 # v6.1
with:
custom_tag: ${{ needs.test.outputs.tag }}
github_token: ${{ secrets.GITHUB_TOKEN }}
goreleaser:
name: Create GH Release
needs: tag
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version-file: go.mod
- name: Run goreleaser release
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
with:
distribution: goreleaser
version: v1.10.3
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}