Replace Travis CI by GitHub Actions (#117)

This commit is contained in:
Romain Bouyé
2021-05-11 12:55:24 +02:00
committed by GitHub
parent 8cc90ec0fc
commit 2ed633f42a
2 changed files with 30 additions and 10 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Go tests
on:
push:
jobs:
ci:
name: Go ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.16', '1.15', '1.14', '1.13' ]
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build ./...
- name: Run tests
run: make ci_test
-10
View File
@@ -1,10 +0,0 @@
language: go
go:
- 1.x
- 1.14.x
- 1.13.x
script:
- go build ./...
- make ci_test