-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (37 loc) · 883 Bytes
/
go-tests.yml
File metadata and controls
48 lines (37 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Go Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
go-tests-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: go version
- name: Run GARM Go Tests
run: |
make install-lint-deps
export PATH=$PATH:$HOME/go/bin
golangci-lint version
make test
go-tests-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: go version
- name: Run GARM Go Tests
run: go test -tags testing -v ./... -timeout=15m -parallel=4