|
|
|
@ -13,7 +13,7 @@ jobs:
|
|
|
|
|
# should also be updated. |
|
|
|
|
image: quay.io/prometheus/golang-builder:1.22-base |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/setup_environment |
|
|
|
|
- run: make GOOPTS=--tags=stringlabels GO_ONLY=1 SKIP_GOLANGCI_LINT=1 |
|
|
|
@ -27,7 +27,7 @@ jobs:
|
|
|
|
|
container: |
|
|
|
|
image: quay.io/prometheus/golang-builder:1.22-base |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/setup_environment |
|
|
|
|
- run: go test --tags=dedupelabels ./... |
|
|
|
@ -43,7 +43,7 @@ jobs:
|
|
|
|
|
# The go version in this image should be N-1 wrt test_go. |
|
|
|
|
image: quay.io/prometheus/golang-builder:1.21-base |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- run: make build |
|
|
|
|
# Don't run NPM build; don't run race-detector. |
|
|
|
|
- run: make test GO_ONLY=1 test-flags="" |
|
|
|
@ -57,7 +57,7 @@ jobs:
|
|
|
|
|
image: quay.io/prometheus/golang-builder:1.22-base |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/setup_environment |
|
|
|
|
with: |
|
|
|
@ -74,7 +74,7 @@ jobs:
|
|
|
|
|
name: Go tests on Windows |
|
|
|
|
runs-on: windows-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 |
|
|
|
|
with: |
|
|
|
|
go-version: 1.22.x |
|
|
|
@ -91,7 +91,7 @@ jobs:
|
|
|
|
|
container: |
|
|
|
|
image: quay.io/prometheus/golang-builder:1.22-base |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- run: go install ./cmd/promtool/. |
|
|
|
|
- run: go install github.com/google/go-jsonnet/cmd/jsonnet@latest |
|
|
|
|
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest |
|
|
|
@ -114,7 +114,7 @@ jobs:
|
|
|
|
|
matrix: |
|
|
|
|
thread: [ 0, 1, 2 ] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/build |
|
|
|
|
with: |
|
|
|
@ -137,7 +137,7 @@ jobs:
|
|
|
|
|
# Whenever the Go version is updated here, .promu.yml |
|
|
|
|
# should also be updated. |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/build |
|
|
|
|
with: |
|
|
|
@ -148,7 +148,7 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- name: Checkout repository |
|
|
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- name: Install Go |
|
|
|
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 |
|
|
|
|
with: |
|
|
|
@ -187,7 +187,7 @@ jobs:
|
|
|
|
|
needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows, golangci, codeql, build_all] |
|
|
|
|
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/publish_main |
|
|
|
|
with: |
|
|
|
@ -201,7 +201,7 @@ jobs:
|
|
|
|
|
needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows, golangci, codeql, build_all] |
|
|
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.') |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- uses: ./.github/promci/actions/publish_release |
|
|
|
|
with: |
|
|
|
@ -216,7 +216,7 @@ jobs:
|
|
|
|
|
needs: [test_ui, codeql] |
|
|
|
|
steps: |
|
|
|
|
- name: Checkout |
|
|
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
|
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 |
|
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 |
|
|
|
|
- name: Install nodejs |
|
|
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 |
|
|
|
|