Bump github.com/prometheus/client_golang from 1.20.0 to 1.20.2 #158
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
push: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
# Whenever the Go version is updated here, .promu.yml | |
# should also be updated. | |
container: | |
image: quay.io/prometheus/golang-builder:1.22-base | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: prometheus/promci@v0.0.2 | |
- uses: ./.github/promci/actions/setup_environment | |
- run: make SKIP_GOLANGCI_LINT=1 | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
thread: [ 0, 1, 2, 3, 4, 5 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: prometheus/promci@v0.0.2 | |
- uses: ./.github/promci/actions/build | |
with: | |
parallelism: 6 | |
thread: ${{ matrix.thread }} | |
golangci: | |
name: golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22.x | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3.2.0 | |
with: | |
version: v1.55.2 | |
publish_main: | |
name: Publish main branch artifacts | |
runs-on: ubuntu-latest | |
needs: [test, build] | |
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: prometheus/promci@v0.0.2 | |
- uses: ./.github/promci/actions/publish_main | |
with: | |
docker_hub_login: ${{ secrets.docker_hub_login }} | |
docker_hub_password: ${{ secrets.docker_hub_password }} | |
quay_io_login: ${{ secrets.quay_io_login }} | |
quay_io_password: ${{ secrets.quay_io_password }} | |
publish_release: | |
name: Publish release arfefacts | |
runs-on: ubuntu-latest | |
needs: [test, build] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: prometheus/promci@v0.0.2 | |
- uses: ./.github/promci/actions/publish_release | |
with: | |
docker_hub_login: ${{ secrets.docker_hub_login }} | |
docker_hub_password: ${{ secrets.docker_hub_password }} | |
quay_io_login: ${{ secrets.quay_io_login }} | |
quay_io_password: ${{ secrets.quay_io_password }} | |
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }} |