-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 904 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
go: [1.16]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Dev Dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq libasound2-dev
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Cache Go Modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod # $GOPATH doesn't seem to be set by actions/setup-go
key: ${{ matrix.os }}-${{ matrix.go }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
- name: Run Tests
run: go test -v ./...