2021-01-14 22:50:19 +08:00
|
|
|
name: Test
|
2020-12-25 16:38:31 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
2021-01-14 22:50:19 +08:00
|
|
|
name: Test
|
2020-12-25 16:38:31 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-01-14 22:50:19 +08:00
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
2020-12-25 16:38:31 +08:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Set up Go 1.14
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
2021-01-14 22:50:19 +08:00
|
|
|
run: make test
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make ke
|
2021-01-16 18:30:36 +08:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
with:
|
2021-01-28 11:27:17 +08:00
|
|
|
name: kubeeye
|
2021-01-16 18:30:36 +08:00
|
|
|
path: ke
|