Create ci.yml

This commit is contained in:
Forest 2020-12-25 16:38:31 +08:00 committed by GitHub
parent 0fcae7860b
commit a4539cef0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
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: Build
run: go build -v -o ke
- name: Test
run: go test -v ./pkg/...