Create ci.yml

This commit is contained in:
Sun Yimin 2022-01-21 13:11:34 +08:00 committed by GitHub
parent b19a869f04
commit 7fa33f2c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goVer: [ '1.15', '1.16', '1.17' ]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.goVer }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...