mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
a505b99ba3
test go 1.14 use golangci-lint
28 lines
700 B
YAML
28 lines
700 B
YAML
name: Build and Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: Go CI
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [1.13, 1.14]
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: Check out source
|
|
uses: actions/checkout@v2
|
|
- name: Install Linters
|
|
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
|
|
- name: Build
|
|
env:
|
|
GO111MODULE: "on"
|
|
run: go build ./...
|
|
- name: Test
|
|
env:
|
|
GO111MODULE: "on"
|
|
run: |
|
|
sh ./goclean.sh
|