This repository was archived by the owner on Jan 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-20
lines changed Expand file tree Collapse file tree 1 file changed +34
-20
lines changed Original file line number Diff line number Diff line change @@ -41,26 +41,40 @@ jobs:
4141 - name : Benchmark
4242 run : GO111MODULE=on CGO_ENABLED=0 go test -benchmem -run=^$ github.com/cruise-automation/k-rail/server -bench .
4343
44- # lint:
45- # runs-on: ubuntu-latest
46- # strategy:
47- # matrix:
48- # go-version: [1.13.x]
49-
50- # steps:
51-
52- # - name: Set up Go ${{ matrix.go-version }}
53- # uses: actions/setup-go@v1
54- # with:
55- # go-version: ${{ matrix.go-version }}
56-
57- # - name: Check out code into the Go module directory
58- # uses: actions/checkout@v1
59-
60- # - name: Lint
61- 62- # # with:
63- # # config: .golangci.yml
44+ smoke :
45+ strategy :
46+ matrix :
47+ go-version : [1.13.x]
48+ runs-on : ubuntu-latest
49+
50+ steps :
51+ - uses : actions/checkout@master
52+
53+ - name : Run chart-testing (lint)
54+ id : lint
55+ 56+ env :
57+ CT_CHART_DIRS : deploy/helm
58+ with :
59+ command : lint
60+
61+ - name : Create kind cluster
62+ 63+ with :
64+ install_local_path_provisioner : true
65+ # Only build a kind cluster if there are chart changes to test.
66+ if : steps.lint.outputs.changed == 'true'
67+
68+ - name : Run chart-testing (install)
69+ 70+ env :
71+ CT_CHART_DIRS : deploy/helm
72+ with :
73+ command : install
74+
75+ - name : Wait for k-rail to come up
76+ run : |
77+ kubectl wait --for=condition=available --timeout=1800s deployment/k-rail -n k-rail
6478
6579 build :
6680 strategy :
You can’t perform that action at this time.
0 commit comments