Skip to content

Commit 8f21b7a

Browse files
authored
build: replace travis-ci with ci via github actions (#130)
1 parent 03c50d4 commit 8f21b7a

3 files changed

Lines changed: 29 additions & 12 deletions

File tree

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Test
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Go CI
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
go: [1.12, 1.13]
10+
steps:
11+
- name: Set up Go
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: ${{ matrix.go }}
15+
- name: Check out source
16+
uses: actions/checkout@v1
17+
- name: Install Linters
18+
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0"
19+
- name: Build
20+
env:
21+
GO111MODULE: "on"
22+
run: go build ./...
23+
- name: Test
24+
env:
25+
GO111MODULE: "on"
26+
run: |
27+
export PATH=${PATH}:$(go env GOPATH)/bin
28+
sh ./run_tests.sh

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dcrpool
22

3-
[![Build Status](https://travis-ci.com/decred/dcrpool.svg?branch=master)](https://travis-ci.com/decred/dcrpool)
3+
[![Build Status](https://github.com/decred/dcrpool/workflows/Build%20and%20Test/badge.svg)](https://github.com/decred/dcrpool/actions)
44

55
dcrpool is a stratum decred mining pool. It currently supports:
66

0 commit comments

Comments
 (0)