Skip to content

Commit c2f630b

Browse files
authored
Merge pull request #3 from nisdas/addGithubActions
Run Github Actions for GoHashtree Builds
2 parents 2099fac + a30c208 commit c2f630b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/go.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Go 1.x
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1.14
18+
id: go
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
23+
- name: Get dependencies
24+
run: |
25+
go get -v -t -d ./...
26+
27+
- name: Build
28+
run: go build -v ./...
29+
30+
- name: Test
31+
run: go test -v ./...

0 commit comments

Comments
 (0)