Skip to content

Commit 7cfd5db

Browse files
committed
Update Workflows
1 parent e60a551 commit 7cfd5db

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
1-
name: build
2-
on: [push]
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
branches: [ master ]
10+
311
jobs:
12+
413
build:
14+
name: Build
515
runs-on: ubuntu-latest
616
steps:
7-
- uses: actions/checkout@v1
8-
- uses: actions/setup-go@v1
17+
18+
- name: Set up Go 1.x
19+
uses: actions/setup-go@v2
920
with:
1021
go-version: 1.x
11-
- run: go test -v ./...
22+
id: go
23+
24+
- name: Check out code into the Go module directory
25+
uses: actions/checkout@v2
26+
27+
- name: Build
28+
run: go build -v ./...
29+
30+
- name: Test
31+
run: go test -v ./...

0 commit comments

Comments
 (0)