We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60a551 commit 7cfd5dbCopy full SHA for 7cfd5db
.github/workflows/go.yml
@@ -1,11 +1,31 @@
1
-name: build
2
-on: [push]
+name: Go
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
+ workflow_dispatch:
9
10
11
jobs:
12
13
build:
14
+ name: Build
15
runs-on: ubuntu-latest
16
steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-go@v1
17
18
+ - name: Set up Go 1.x
19
+ uses: actions/setup-go@v2
20
with:
21
go-version: 1.x
- - 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