Skip to content

Commit 1da12ac

Browse files
authored
Merge pull request #106 from cockroachdb/nvanbenschoten/githubActions
apd: perform CI using GitHub Actions
2 parents d020e15 + ec2923b commit 1da12ac

File tree

2 files changed

+48
-14
lines changed

2 files changed

+48
-14
lines changed

.github/workflows/go.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
go:
18+
- '1.11'
19+
- '1.12'
20+
- '1.13'
21+
- '1.14'
22+
- '1.15'
23+
- '1.16'
24+
- '1.17'
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v2
31+
with:
32+
go-version: '${{ matrix.go }}'
33+
34+
- name: 'Build'
35+
run: go build -v ./...
36+
37+
- name: 'Test'
38+
run: go test -v ./...
39+
40+
- name: 'Vet'
41+
run: go vet ./...
42+
43+
- name: 'Staticcheck'
44+
# staticcheck requires go1.14.
45+
if: ${{ matrix.go != '1.11' && matrix.go != '1.12' && matrix.go != '1.13' }}
46+
run: |
47+
go get honnef.co/go/tools/cmd/staticcheck
48+
staticcheck ./...

.travis.yml

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

0 commit comments

Comments
 (0)