Skip to content

Commit 2e4afc3

Browse files
author
sammyne
committed
feature(test): set up Github Actions for CI
1 parent 60e7454 commit 2e4afc3

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

.circleci/config.yml

-10
This file was deleted.

.github/workflow/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# other reference: https://github.com/mvdan/github-actions-golang
2+
name: build
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
go:
15+
- "1.15.1"
16+
runs-on: ubuntu-18.04
17+
container:
18+
image: golang:${{ matrix.go }}
19+
20+
env:
21+
CODECOV_TOKEN: 701e86bd-1c7e-43ee-903d-f73944e464c0 # for codecov
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Run tests
25+
run: | # -race wouldn't be supported without gcc
26+
go test -v -race $(go list ./... | grep -v /vendor/) -coverprofile=coverage.txt &&
27+
bash <(curl -s https://codecov.io/bash)
28+
shell: bash

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/sammyne/bip32
22

3+
go 1.15
4+
35
require (
46
github.com/btcsuite/btcd v0.0.0-20181013004428-67e573d211ac
57
github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a

0 commit comments

Comments
 (0)