Add GitHub build workflow, remove TravisCI config

This commit is contained in:
Christian Muehlhaeuser 2022-01-09 09:51:14 +01:00
parent d866ba75dd
commit 7f61b78d08
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
3 changed files with 31 additions and 5 deletions

29
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go-version: [~1.15, ^1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Download Go modules
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test ./...

View File

@ -1,3 +0,0 @@
language: go
go:
- 1.15

View File

@ -96,8 +96,8 @@ libraries.
Thanks to those who have been early adopters with v0 and/or provided early
feedback.
[Build-Status-Image]: https://travis-ci.org/go-fed/activity.svg?branch=master
[Build-Status-Url]: https://travis-ci.org/go-fed/activity
[Build-Status-Image]: https://github.com/go-fed/activity/workflows/build/badge.svg
[Build-Status-Url]: https://github.com/go-fed/activity/actions
[Go-Reference-Image]: https://pkg.go.dev/badge/github.com/go-fed/activity
[Go-Reference-Url]: https://pkg.go.dev/github.com/go-fed/activity
[Go-Report-Card-Image]: https://goreportcard.com/badge/github.com/go-fed/activity