Create macos.yml

This commit is contained in:
Sun Yimin 2022-06-09 08:28:48 +08:00 committed by GitHub
parent 109f6e7110
commit 6e769eeaf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/macos.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: macOs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...