Skip to content

Commit f7ca803

Browse files
authored
Merge pull request #19 from iFaceless/add-workflows
✨ feat: add workflows
2 parents 55d35f4 + 453a454 commit f7ca803

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/go.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Set up Go 1.x
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ^1.13
19+
id: go
20+
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v2
23+
24+
- name: Get dependencies
25+
run: go mod tidy
26+
27+
- name: golangci-lint
28+
uses: golangci/golangci-lint-action@v1
29+
with:
30+
version: v1.26
31+
only-new-issues: true
32+
33+
- name: Test
34+
run: go test -v -covermode=atomic -coverprofile=coverage.out -race
35+

0 commit comments

Comments
 (0)