go.yml

 1name: Golang build and test
 2
 3on:
 4  push:
 5    branches: [ master ]
 6  pull_request:
 7    branches: [ master ]
 8  workflow_dispatch:
 9
10jobs: 
11  build:
12    
13    strategy:
14      matrix:
15        go-version: [1.13.x, 1.14.x, 1.15.x]
16        platform: [ubuntu-latest, macos-latest, windows-latest]
17  
18    runs-on: ${{ matrix.platform }}
19    
20    steps:
21
22    - name: Set up Go
23      uses: actions/setup-go@v2
24      with:
25        go-version: ${{ matrix.go-version }}
26
27    - name: Check out code into the Go module directory
28      uses: actions/checkout@v2
29
30    - name: Build
31      run: make
32
33    - name: Test
34      run: make test