| 1 | name: build-test |
| 2 | on: |
| 3 | pull_request: |
| 4 | branches: |
| 5 | - master |
| 6 | push: |
| 7 | branches: |
| 8 | - master |
| 9 | jobs: |
| 10 | ci: |
| 11 | name: go${{ matrix.go_version }}/${{ matrix.os }} |
| 12 | runs-on: ${{ matrix.os }} |
| 13 | strategy: |
| 14 | matrix: |
| 15 | go_version: ['1.16','1.17'] |
| 16 | os: [ubuntu-latest] |
| 17 | steps: |
| 18 | - name: Use Go ${{ matrix.go_version }} |
| 19 | uses: actions/setup-go@v2 |
| 20 | with: |
| 21 | go-version: ${{ matrix.go_version }} |
| 22 | - name: Check out code into the Go module directory |
| 23 | uses: actions/[email protected] |
| 24 | - name: run tests |
| 25 | run: | |
| 26 | go test ./... |