Skip to content

Commit d464c64

Browse files
author
sam bacha
committed
ci(go): go workflow
1 parent 4a37da7 commit d464c64

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: go
2+
3+
on: ['pull_request']
4+
5+
jobs:
6+
goreleaser:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/cache@v2
14+
with:
15+
path: ~/go/pkg/mod
16+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
17+
restore-keys: |
18+
${{ runner.os }}-go-
19+
- name: Set up Go
20+
uses: actions/setup-go@v2.1.3
21+
with:
22+
go-version: 1.14
23+
run: go mod tidy && go build -o protoc-gen-sol
24+
- name: Go report card
25+
uses: creekorful/goreportcard-action@v1.0

0 commit comments

Comments
 (0)