Create build.yml

This commit is contained in:
李文超
2021-08-19 10:12:32 +08:00
committed by GitHub
parent c6cb95ecbe
commit a5f71b9153
+25
View File
@@ -0,0 +1,25 @@
name: natpass
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:
go-version: 1.17
- name: Build Server
run: go build -v code/server/*.go
- name: Build Client
run: go test -v code/client/*.go