Skip to content

Commit e13ba02

Browse files
authored
Create test.yml
1 parent 557ffed commit e13ba02

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Linux Build & Unit tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
types: [ opened, synchronize, reopened, ready_for_review ]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
go-version: [ 1.20.x ]
14+
os: [ ubuntu-latest ]
15+
16+
name: Checking
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Setup Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
24+
- name: Check out code
25+
uses: actions/checkout@v3
26+
27+
- name: Build
28+
run: go build -v ./...
29+
30+
- name: Test
31+
run: go test -v ./...

0 commit comments

Comments
 (0)