github.com/KarpelesLab/contexter@v1.0.2/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10  
    11    build:
    12      runs-on: ubuntu-latest
    13      strategy:
    14        matrix:
    15          go: [ '1.16', '1.17' ]
    16      steps:
    17      - uses: actions/checkout@v2
    18  
    19      - name: Set up Go
    20        uses: actions/setup-go@v2
    21        with:
    22          go-version: ${{ matrix.go }}
    23  
    24      - name: Build
    25        run: go build -v ./...
    26  
    27      - name: Test
    28        run: go test -v ./...