Skip to content

Commit

Permalink
Remove Travis CI; use GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cespare committed Aug 24, 2021
1 parent 8d433f3 commit 15613bb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on:
push:
branches: [main]
pull_request:

jobs:
test:
strategy:
matrix:
go-version: [1.16.x, 1.17.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Install go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Check out code
uses: actions/checkout@v2

- name: Test
run: go test -count 1 -bench . -benchtime 1x ./...

- name: Test with -tags purego
run: go test -count 1 -bench . -benchtime 1x -tags purego ./...

# TODO: Test on other architectures. Unfortunately only amd64 is supported
# by GH Actions. We could use QEMU in the meantime.
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit 15613bb

Please sign in to comment.