Convert ci to github actions

This commit is contained in:
Zachary Yedidia 2023-01-30 17:34:30 -08:00
parent 0500cc234d
commit d1af21f626
2 changed files with 22 additions and 11 deletions

22
.github/workflows/test.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
on: [push, pull_request]
name: Build and Test
jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: Build
run: |
make build
- name: Test
run: |
make test

View file

@ -1,11 +0,0 @@
language: go
go:
- "1.13.x"
os:
- linux
- osx
- windows
script:
- go build ./cmd/micro
- go test ./internal/...
- go test ./cmd/...