mirror of https://github.com/mickael-menu/zk
Add a GitHub build action (#50)
parent
ac80a3cca1
commit
45f4d85169
@ -0,0 +1,28 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
lfs: 'true'
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
|
||||
- name: Build
|
||||
run: ./go build
|
||||
|
||||
- name: Test
|
||||
run: ./go test -v ./...
|
||||
|
Loading…
Reference in New Issue