forked from SumoLogic-Labs/sumocli
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.27 KB
/
sumocli-tests.yml
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
49
50
51
52
name: Sumocli Tests
on: [pull_request, push]
env:
GOVERSION: '1.17.6'
jobs:
compile_linux_binary:
name: Test and Compile Linux Binary
runs-on: ubuntu-latest
steps:
- name: Setup Go Environment
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Build Sumocli
run: go build ./cmd/sumocli
- name: Run Tests
run: go test ./...
compile_macos_binary:
name: Test and Compile macOS Binary
runs-on: macos-latest
steps:
- name: Setup Go Environment
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Build Sumocli
run: go build ./cmd/sumocli
- name: Run Tests
run: go test ./...
compile_windows_binary:
name: Test and Compile Windows Binary
runs-on: windows-latest
steps:
- name: Setup Go Environment
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Build Sumocli
run: go build ./cmd/sumocli
- name: Run Tests
run: go test ./...