Skip to content
Permalink
Browse files

build: replace travis-ci with ci via github actions (#54)

  • Loading branch information...
dajohi committed Oct 4, 2019
1 parent d6f4a51 commit a7954ecf13884bda71db751af10476293e9783fd
Showing with 31 additions and 15 deletions.
  1. +28 −0 .github/workflows/go.yml
  2. +0 −14 .travis.yml
  3. +1 −1 README.md
  4. +2 −0 go.mod
@@ -0,0 +1,28 @@
name: Build and Test
on: [push, pull_request]
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.12, 1.13]
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v1
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.19.1"
- name: Build
env:
GO111MODULE: "on"
run: go build ./...
- name: Test
env:
GO111MODULE: "on"
run: |
export PATH=${PATH}:$(go env GOPATH)/bin
sh ./goclean.sh

This file was deleted.

@@ -1,7 +1,7 @@
dcrtime
=======

[![Build Status](https://travis-ci.org/decred/dcrtime.png?branch=master)](https://travis-ci.org/decred/dcrtime)
[![Build Status](https://github.com/decred/dcrtime/workflows/Build%20and%20Test/badge.svg)](https://github.com/decred/dcrtime/actions)
[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/decred/dcrtime)

2 go.mod
@@ -31,3 +31,5 @@ require (
google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922 // indirect
google.golang.org/grpc v1.18.0
)

go 1.12

0 comments on commit a7954ec

Please sign in to comment.
You can’t perform that action at this time.