add test for GitHub Actions

This commit is contained in:
6543 2020-09-10 23:27:16 +02:00
parent 37a28e401f
commit ae766c3d7b
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 18 additions and 0 deletions

18
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,18 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...