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

[WIP] smoke test #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 34 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,40 @@ jobs:
- name: Benchmark
run: GO111MODULE=on CGO_ENABLED=0 go test -benchmem -run=^$ github.com/cruise-automation/k-rail/server -bench .

# lint:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# go-version: [1.13.x]

# steps:

# - name: Set up Go ${{ matrix.go-version }}
# uses: actions/setup-go@v1
# with:
# go-version: ${{ matrix.go-version }}

# - name: Check out code into the Go module directory
# uses: actions/checkout@v1

# - name: Lint
# uses: matoous/[email protected]
# # with:
# # config: .golangci.yml
smoke:
strategy:
matrix:
go-version: [1.13.x]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: Run chart-testing (lint)
id: lint
uses: helm/[email protected]
env:
CT_CHART_DIRS: deploy/helm
with:
command: lint

- name: Create kind cluster
uses: helm/[email protected]
with:
install_local_path_provisioner: true
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'

- name: Run chart-testing (install)
uses: helm/[email protected]
env:
CT_CHART_DIRS: deploy/helm
with:
command: install

- name: Wait for k-rail to come up
run: |
kubectl wait --for=condition=available --timeout=1800s deployment/k-rail -n k-rail

build:
strategy:
Expand Down