Skip to content

Commit 5c3fcaf

Browse files
committed
Switch to GitHub Actions
1 parent da01570 commit 5c3fcaf

File tree

4 files changed

+47
-67
lines changed

4 files changed

+47
-67
lines changed

.github/workflows/go.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Go
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
build:
8+
name: Build
9+
strategy:
10+
matrix:
11+
go-version: [1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x]
12+
platform: [ubuntu-latest, macos-latest, windows-latest]
13+
runs-on: ${{ matrix.platform }}
14+
steps:
15+
- name: Set up Go 1.x
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
id: go
20+
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v2
23+
with:
24+
submodules: true
25+
26+
- name: Get dependencies
27+
run: go get -v -t -d ./...
28+
29+
- name: Build
30+
run: go build -v .
31+
32+
- name: Test
33+
run: go test -race -v ./...

.github/workflows/golangci-lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: golangci-lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
golangci:
7+
name: lint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: golangci-lint
12+
uses: golangci/golangci-lint-action@v1
13+
with:
14+
version: v1.30

.travis.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)