chore: use GitHub actions for CI (#30)

* remove Travis CI integration
* use github actions instead
This commit is contained in:
Hraban Luyat 2020-07-10 13:25:57 +01:00 committed by GitHub
parent f10c96b8f4
commit 558c065b07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 14 deletions

27
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,27 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version:
- 1.14.x
platform:
# Would like to test mac & win but not sure how to install opus on
# those in GH actions, yet.
- ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install system dependencies
run: sudo apt-get install pkg-config libopus-dev libopusfile-dev moreutils
- name: Checkout code
uses: actions/checkout@v2
# Could be a separate step but this is so quick--just put it here
- name: Lint
run: gofmt -d . | tee /dev/stderr | ifne false
- name: Test
run: go test -race -v ./...

View file

@ -1,14 +0,0 @@
language: go
go: 1.7
dist: trusty
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install pkg-config libopus-dev libopusfile-dev moreutils
script:
- gofmt -l . | tee /dev/stderr | ifne false
- go test -v ./...