Skip to content

Commit fc25928

Browse files
authored
Merge pull request #404 from kzys/travis-to-github-actions
Use GitHub Actions
2 parents f30a5ac + 33041cc commit fc25928

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
env:
12+
GO111MODULE: on
13+
14+
# Intentionally use 18.04 instead of "latest" to
15+
# make this build reproducible.
16+
runs-on: ubuntu-18.04
17+
18+
strategy:
19+
matrix:
20+
go: ['1.11', '1.12', '1.13', '1.14']
21+
name: Go ${{ matrix.go }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
# Assuming that there are at most 20 commits in a single pull
27+
# request, we want to check all commits in a pull request have DCO.
28+
fetch-depth: 20
29+
- uses: actions/setup-go@v1
30+
with:
31+
go-version: ${{ matrix.go }}
32+
- run: make deps
33+
- run: make
34+
- run: make lint
35+
- run: make test

0 commit comments

Comments
 (0)