Skip to content

Commit 6c99fc4

Browse files
committed
.github: add test workflow
1 parent c629675 commit 6c99fc4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
giannimassi

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on: [push, pull_request]
2+
name: Test and Build
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.14.4]
8+
platform: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- uses: actions/cache@v2
12+
with:
13+
path: ~/go/pkg/mod
14+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
15+
restore-keys: |
16+
${{ runner.os }}-go-
17+
- name: Install Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: ${{ matrix.go-version }}
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
- name: Test
24+
run: go test ./...
25+
- name: Build
26+
run: go build ./...

0 commit comments

Comments
 (0)