Skip to content

Commit 7f9006f

Browse files
authored
Feat(github actions): Playing with Github actions. Test my code!
1 parent a3a2d95 commit 7f9006f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Go
2+
on: [push]
3+
jobs:
4+
5+
build:
6+
name: Test
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Set up Go 1.12
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.12
14+
id: go
15+
16+
- name: Check out code into the Go module directory
17+
uses: actions/checkout@v1
18+
19+
- name: Get dependencies
20+
run: |
21+
go get -v -t -d ./...
22+
if [ -f Gopkg.toml ]; then
23+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24+
dep ensure
25+
fi
26+
27+
- name: Test
28+
run: go test ./...

0 commit comments

Comments
 (0)