-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 978 Bytes
/
build.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
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
defaults:
run:
shell: bash
jobs:
build:
name: Go ${{ matrix.go-ver }} on ${{ matrix.vm-os }}
runs-on: ${{ matrix.vm-os }}
strategy:
max-parallel: 9
fail-fast: false
matrix:
vm-os: [ubuntu-20.04, macos-12, windows-2022]
go-ver:
- "1.13.15"
- "1.14.15"
- "1.15.15"
- "1.16.15"
- "1.17.13"
- "1.18.10"
- "1.19.13"
- "1.20.9"
- "1.21.2"
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-ver }}
- name: Go Build
run: |
git status
go version
go build -v .
- name: Go Test
if: ${{ runner.os != 'Windows' }}
run: |
go test -cover -covermode=atomic -v -count 1 ./...