Migrate to github actions
This commit is contained in:
parent
19c98f6d3e
commit
f09463fbe1
|
@ -0,0 +1,21 @@
|
||||||
|
on: [push, pull_request]
|
||||||
|
name: Test
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [1.15.x, 1.16.x]
|
||||||
|
os: [ubuntu-latest, macos-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 -race -bench . -benchmem ./...
|
||||||
|
- name: Test CBOR
|
||||||
|
run: go test -tags binary_log ./...
|
||||||
|
|
17
.travis.yml
17
.travis.yml
|
@ -1,17 +0,0 @@
|
||||||
language: go
|
|
||||||
go:
|
|
||||||
- "1.9"
|
|
||||||
- "1.10"
|
|
||||||
- "1.11"
|
|
||||||
- "1.12"
|
|
||||||
- "1.13"
|
|
||||||
- "1.14"
|
|
||||||
- "1.15"
|
|
||||||
- "1.16"
|
|
||||||
- "master"
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- go: "master"
|
|
||||||
script:
|
|
||||||
- go test -v -race -cpu=1,2,4 -bench . -benchmem ./...
|
|
||||||
- go test -v -tags binary_log -race -cpu=1,2,4 -bench . -benchmem ./...
|
|
Loading…
Reference in New Issue