Merge pull request #42 from shaowenchen/main

feature: add a test case on Kind
This commit is contained in:
KubeSphere CI Bot 2021-02-02 18:10:18 +08:00 committed by GitHub
commit f80adfdd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 8 deletions

View File

@ -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

24
.github/workflows/kind-test.yaml vendored Normal file
View File

@ -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