Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit a8eb69b

Browse files
committed
github actions
1 parent 2710cf0 commit a8eb69b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.16.x, 1.17.x]
8+
os: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
10+
11+
steps:
12+
- name: Install Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: ${{ matrix.go-version }}
16+
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Lint
21+
run: gofmt -d ./
22+
23+
- name: Test
24+
run: go test ./...

0 commit comments

Comments
 (0)