File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1717 if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
1818 steps :
1919 - name : git checkout
20- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
2121 - name : Set docker hub repo name
2222 run : echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
2323 - name : Push README to Dockerhub
3737 if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
3838 steps :
3939 - name : git checkout
40- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
4141 - name : Set quay.io org name
4242 run : echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
4343 - name : Set quay.io repo name
Original file line number Diff line number Diff line change 2424 runs-on : ubuntu-latest
2525 steps :
2626 - name : Checkout repository
27- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27+ uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2828 - name : install Go
2929 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3030 with :
3333 run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
3434 if : github.repository == 'prometheus/snmp_exporter'
3535 - name : Lint
36- uses : golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0 .0
36+ uses : golangci/golangci-lint-action@9d1e0624a798bb64f6c3cea93db47765312263dc # v5.1 .0
3737 with :
38- version : v1.55 .2
38+ version : v1.56 .2
Original file line number Diff line number Diff line change 11---
22extends: default
3+ ignore: |
4+ ui/react-app/node_modules
35
46rules:
57 braces:
Original file line number Diff line number Diff line change @@ -49,19 +49,19 @@ endif
4949GOTEST := $(GO) test
5050GOTEST_DIR :=
5151ifneq ($(CIRCLE_JOB),)
52- ifneq ($(shell command -v gotestsum > /dev/null),)
52+ ifneq ($(shell command -v gotestsum 2 > /dev/null),)
5353 GOTEST_DIR := test-results
5454 GOTEST := gotestsum --junitfile $(GOTEST_DIR)/unit-tests.xml --
5555endif
5656endif
5757
58- PROMU_VERSION ?= 0.15 .0
58+ PROMU_VERSION ?= 0.17 .0
5959PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060
6161SKIP_GOLANGCI_LINT :=
6262GOLANGCI_LINT :=
6363GOLANGCI_LINT_OPTS ?=
64- GOLANGCI_LINT_VERSION ?= v1.55 .2
64+ GOLANGCI_LINT_VERSION ?= v1.56 .2
6565# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6666# windows isn't included here because of the path separator being different.
6767ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
@@ -182,7 +182,7 @@ endif
182182.PHONY: common-yamllint
183183common-yamllint:
184184 @echo ">> running yamllint on all YAML files in the repository"
185- ifeq (, $(shell command -v yamllint > /dev/null))
185+ ifeq (, $(shell command -v yamllint 2 > /dev/null))
186186 @echo "yamllint not installed so skipping"
187187else
188188 yamllint .
You can’t perform that action at this time.
0 commit comments