Skip to content

Commit

Permalink
*: add .github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchiang committed Jan 7, 2022
1 parent 9381b0a commit b191234
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
go-version: [1.17.x, 1.16.x]
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: Build
run: go build ./...
- name: Test
run: go test ./...

0 comments on commit b191234

Please sign in to comment.