2021-03-04 08:22:05 +00:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-03-04 08:35:21 +00:00
|
|
|
go-version: 1.16
|
2021-03-04 08:22:05 +00:00
|
|
|
|
|
|
|
- name: Build
|
2021-03-04 08:35:21 +00:00
|
|
|
run: go build -v ./*.go
|
2021-03-04 08:22:05 +00:00
|
|
|
|
2021-03-16 11:44:19 +00:00
|
|
|
- name: Build arts
|
|
|
|
run: go build -v ./arts/*.go
|
|
|
|
|
2021-03-04 08:22:05 +00:00
|
|
|
- name: Test
|
2021-03-16 11:44:19 +00:00
|
|
|
run: go test -v ./common/...
|