Merge pull request #42 from shaowenchen/main
feature: add a test case on Kind
This commit is contained in:
commit
f80adfdd70
|
@ -1,15 +1,10 @@
|
|||
name: Test
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Test
|
||||
name: ci
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
name: kind-test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
kind-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- name: Set up Go 1.14
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build KubeEye
|
||||
run: make ke
|
||||
- name: Creating kind cluster
|
||||
uses: helm/kind-action@v1.0.0-rc.1
|
||||
- name: Run KubeEye
|
||||
run: |
|
||||
rm -rf temp & mkdir temp
|
||||
mv ke temp/
|
||||
./temp/ke diag
|
Loading…
Reference in New Issue