Skip to content

Commit 43dbba3

Browse files
committed
chore(ci): Adding github actions pipeline
1 parent dbc8262 commit 43dbba3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest,macos-latest,windows-latest]
15+
go: ['oldstable', 'stable']
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- name: Set up Golang
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '${{ matrix.go }}'
22+
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Test
27+
run: |
28+
test -z "`gofmt -l -d .`"
29+
test -z "`go run golang.org/x/lint/golint@latest ./...`"
30+
go test -v --race -covermode=count -coverprofile=coverage.out

0 commit comments

Comments
 (0)