Skip to content

Commit 75f60b5

Browse files
committed
first commit
1 parent 1910e42 commit 75f60b5

File tree

9 files changed

+1688
-1
lines changed

9 files changed

+1688
-1
lines changed

.github/workflows/go.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.17
20+
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v2
23+
with:
24+
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
25+
version: v1.49.0
26+
# Optional: working directory, useful for monorepos
27+
# working-directory: somedir
28+
29+
# Optional: golangci-lint command line arguments.
30+
# args: --issues-exit-code=0
31+
32+
# Optional: show only new issues if it's a pull request. The default value is `false`.
33+
# only-new-issues: true
34+
35+
# Optional: if set to true then the action will use pre-installed Go.
36+
skip-go-installation: true
37+
38+
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
39+
# skip-pkg-cache: true
40+
41+
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
42+
# skip-build-cache: true
43+
44+
- name: Test
45+
run: CI=true go test -v -coverprofile=coverage.out ./...
46+
47+
- name: codecov
48+
uses: codecov/codecov-action@v2
49+
with:
50+
flags: unittests
51+
fail_ci_if_error: true
52+
files: coverage.out

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
16+
17+
# IDE
18+
.idea

0 commit comments

Comments
 (0)