File tree Expand file tree Collapse file tree 3 files changed +28
-14
lines changed Expand file tree Collapse file tree 3 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 container : quay.io/cortexproject/cortex-jsonnet-build-image:e158eda
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v4
1515 name : Checkout
1616 with :
1717 fetch-depth : 0
2525 runs-on : ubuntu-latest
2626 container : quay.io/cortexproject/cortex-jsonnet-build-image:e158eda
2727 steps :
28- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v4
2929 name : Checkout
3030 with :
3131 fetch-depth : 0
@@ -36,10 +36,14 @@ jobs:
3636 runs-on : ubuntu-latest
3737 container : quay.io/cortexproject/cortex-jsonnet-build-image:e158eda
3838 steps :
39- - uses : actions/checkout@v2
39+ - uses : actions/checkout@v4
4040 name : Checkout
4141 with :
4242 fetch-depth : 0
4343
44- - name : " Test readme"
45- run : make test-readme
44+ - name : " Test readme s3"
45+ run : make test-readme/s3
46+ - name : " Test readme azure"
47+ run : make test-readme/azure
48+ - name : " Test readme gcs"
49+ run : make test-readme/gcs
Original file line number Diff line number Diff line change 1- .PHONY : lint build-image publish-build-image test-readme
1+ .PHONY : lint build-image publish-build-image test-readme clean
22
33JSONNET_FMT := jsonnetfmt
44
@@ -47,18 +47,17 @@ build-mixin:
4747test-readme : test-readme/azure test-readme/gcs test-readme/s3
4848
4949test-readme/% :
50- rm -rf $@ && \
51- mkdir -p $@ && cd $@ && \
52- tk init --k8s=1.24 && \
53- jb install github.com/cortexproject/cortex-jsonnet/cortex@main && \
54- rm -fr ./vendor/cortex && \
55- cp -r ../../cortex ./vendor/ && \
56- cp vendor/cortex/$(notdir $@ ) /main.jsonnet.example environments/default/main.jsonnet && \
57- PAGER=cat tk show environments/default
50+ @./scripts/test-readme.sh $@
5851
5952clean-white-noise :
6053 @$(FIND ) . -type f -regextype posix-extended -regex ' .*(md|libsonnet)' -print | \
6154 SED_BIN=" $( SED) " xargs ./scripts/cleanup-white-noise.sh
6255
6356check-white-noise : clean-white-noise
6457 @git diff --exit-code --quiet || (echo " Please remove trailing whitespaces running 'make clean-white-noise'" && false)
58+
59+ clean :
60+ rm -rf cortex-mixin/out
61+ rm -rf cortex-mixin/vendor
62+ rm -f cortex-mixin/cortex-mixin.zip
63+ rm -rf test-readme
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -xe
3+ rm -rf $1
4+ mkdir -p $1
5+ cd $1
6+ tk init --k8s=1.26
7+ jb install github.com/cortexproject/cortex-jsonnet/cortex@main
8+ rm -fr ./vendor/cortex
9+ cp -r ../../cortex ./vendor/
10+ cp vendor/cortex/$( basename $1 ) /main.jsonnet.example environments/default/main.jsonnet
11+ PAGER=cat tk show --dangerous-allow-redirect environments/default
You can’t perform that action at this time.
0 commit comments