Skip to content

Commit 8706ec3

Browse files
authored
Add files via upload
1 parent 5db9762 commit 8706ec3

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

.github/workflows/linter.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [push, pull_request]
2+
name: Linter
3+
jobs:
4+
Golint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Fetch Repository
8+
uses: actions/checkout@v2
9+
- name: Run Golint
10+
uses: reviewdog/action-golangci-lint@v1
11+
with:
12+
golangci_lint_flags: "--tests=false"

.github/workflows/security.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [push, pull_request]
2+
name: Security
3+
jobs:
4+
Gosec:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Fetch Repository
8+
uses: actions/checkout@v2
9+
- name: Run Gosec
10+
uses: securego/gosec@master
11+
with:
12+
args: -exclude=G204 ./...

.github/workflows/test.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
Build-Windows:
5+
strategy:
6+
matrix:
7+
go-version: [1.14.x, 1.15.x]
8+
platform: [windows-latest]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Fetch Repository
16+
uses: actions/checkout@v2
17+
- name: Run Test
18+
run: go test ./... -v -race
19+
20+
Build-Macos:
21+
strategy:
22+
matrix:
23+
go-version: [ 1.14.x, 1.15.x ]
24+
platform: [macos-latest]
25+
runs-on: ${{ matrix.platform }}
26+
steps:
27+
- name: Install Go
28+
uses: actions/setup-go@v1
29+
with:
30+
go-version: ${{ matrix.go-version }}
31+
- name: Fetch Repository
32+
uses: actions/checkout@v2
33+
- name: Run Test
34+
run: go test ./... -v -race
35+
36+
Build-Linux:
37+
strategy:
38+
matrix:
39+
go-version: [1.14.x, 1.15.x]
40+
platform: [ubuntu-latest]
41+
runs-on: ${{ matrix.platform }}
42+
steps:
43+
- name: Install Go
44+
uses: actions/setup-go@v1
45+
with:
46+
go-version: ${{ matrix.go-version }}
47+
- name: Fetch Repository
48+
uses: actions/checkout@v2
49+
- name: Run Test
50+
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
51+
- name: Upload Coverage report to CodeCov
52+
uses: codecov/[email protected]
53+
with:
54+
token: ${{secrets.CODECOV_TOKEN}}
55+
file: ./coverage.txt

0 commit comments

Comments
 (0)