Bump github.com/prometheus/prometheus from 0.300.1 to 0.301.0 #146
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: go | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
- snapshot/* | |
tags: | |
- v* | |
pull_request: | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.ref_name != 'main' }} | |
jobs: | |
gofmt: | |
name: "check code format" | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: perses/github-actions@v0.8.0 | |
- uses: ./.github/perses-ci/actions/setup_environment | |
with: | |
enable_go: true | |
enable_cue: true | |
cue_version: "v0.10.0" | |
- name: check format | |
run: make checkformat | |
- name: check go.mod | |
run: make checkunused | |
test: | |
name: "test" | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: perses/github-actions@v0.8.0 | |
- uses: ./.github/perses-ci/actions/setup_environment | |
with: | |
enable_go: true | |
enable_cue: true # needed for DaC CLI commands unit tests | |
- name: test | |
run: make test | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: perses/github-actions@v0.8.0 | |
- uses: ./.github/perses-ci/actions/setup_environment | |
with: | |
enable_go: true | |
enable_go_cache: false | |
enable_npm: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6.1.1 | |
with: | |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | |
version: v1.61.0 | |
args: --timeout 5m |