mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add CI pipeline to test with -tags=stringlabels
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
This commit is contained in:
parent
864e582a14
commit
2cb71a164d
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
@ -28,3 +28,27 @@ jobs:
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: GO=/usr/local/go/bin/go make common-test
|
run: GO=/usr/local/go/bin/go make common-test
|
||||||
|
|
||||||
|
test-stringlabels:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Upgrade golang
|
||||||
|
run: |
|
||||||
|
cd /tmp
|
||||||
|
wget https://dl.google.com/go/go1.20.3.linux-amd64.tar.gz
|
||||||
|
tar -zxvf go1.20.3.linux-amd64.tar.gz
|
||||||
|
sudo rm -fr /usr/local/go
|
||||||
|
sudo mv /tmp/go /usr/local/go
|
||||||
|
cd -
|
||||||
|
ls -l /usr/bin/go
|
||||||
|
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# This file would normally be created by `make assets`, here we just
|
||||||
|
# mock it because the file is required for the tests to pass.
|
||||||
|
- name: Mock building of necessary react file
|
||||||
|
run: mkdir web/ui/static/react && touch web/ui/static/react/index.html
|
||||||
|
|
||||||
|
- name: Run Tests -tags=stringlabels
|
||||||
|
run: GO=/usr/local/go/bin/go GOOPTS=-tags=stringlabels make common-test
|
Loading…
Reference in a new issue