From f09463fbe16251ab32b518cc58458362ea1dad6b Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 5 May 2021 14:48:57 +0200 Subject: [PATCH] Migrate to github actions --- .github/workflows/test.yml | 21 +++++++++++++++++++++ .travis.yml | 17 ----------------- 2 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..366f8cc --- /dev/null +++ b/.github/workflows/test.yml @@ -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 ./... + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a5d00e2..0000000 --- a/.travis.yml +++ /dev/null @@ -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 ./...