Skip to content

Commit 78b1f09

Browse files
authored
Switch from Travis-CI to GitHub actions (#1286)
Travis-CI is dead. GitHub actions is the new hotness. The minimally supported version is Go1.11 to make use of modules.
1 parent acacf81 commit 78b1f09

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

Diff for: .github/workflows/test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x]
8+
os: [ubuntu-latest, macos-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: TestLatest
18+
if: matrix.go-version == '1.16.x'
19+
run: ./test.bash
20+
- name: TestAll
21+
if: matrix.go-version != '1.16.x'
22+
run: go test ./...

Diff for: .travis.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)