Skip to content

Commit e1cee1c

Browse files
committed
Switch automatic build/test to GitHub Actions
Travis CI setup for OSS projects became more complicated, and Github Actions seem to be good enough to cover this.
1 parent e12d479 commit e1cee1c

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

.github/workflows/test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '16 3 * * 1'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: true
16+
matrix:
17+
go_version: ['1.14', '1.17', '>=1.17']
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Go ${{matrix.go_version}}
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go_version }}
25+
- name: Build
26+
run: go build -v ./...
27+
- name: Test
28+
run: go test -v ./...

.travis.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)