Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Commit 98d4f52

Browse files
committed
smoke test
Signed-off-by: Dustin Decker <[email protected]>
1 parent 54bbbcd commit 98d4f52

File tree

1 file changed

+34
-20
lines changed

1 file changed

+34
-20
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff 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-
# uses: matoous/[email protected]
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+
uses: helm/[email protected]
56+
env:
57+
CT_CHART_DIRS: deploy/helm
58+
with:
59+
command: lint
60+
61+
- name: Create kind cluster
62+
uses: helm/[email protected]
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+
uses: helm/[email protected]
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:

0 commit comments

Comments
 (0)