databag/.github/workflows/go.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 23: mapping key "run" already defined at line 22 line 27: mapping key "run" already defined at line 26
Pierre Balzack bfd71b79ef
Create go.yml
setting up ci
2022-07-01 15:04:44 -07:00

28 lines
412 B
YAML

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 ./...