Create go.yml

setting up ci
This commit is contained in:
Pierre Balzack 2022-07-01 15:04:44 -07:00 committed by GitHub
parent ce5cbb1f6f
commit bfd71b79ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.5
- name: Build
run: cd net/server
run: go build databag
- name: Test
run: cd net/server
run: go test -v ./...