Skip to content

Commit d13755b

Browse files
committed
add github build
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
1 parent 008a63f commit d13755b

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.yml]
2+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix: # Support latest and one minor back
15+
go: ['1.15', '1.16']
16+
env:
17+
GOFLAGS: -mod=readonly
18+
19+
steps:
20+
- name: Set up Go
21+
uses: actions/setup-go@v2.1.3
22+
with:
23+
stable: 'false'
24+
go-version: ${{ matrix.go }}
25+
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Run tests
30+
run: go test -v -race ./...

0 commit comments

Comments
 (0)