| 1 | name: Go |
| 2 | |
| 3 | on: [push] |
| 4 | |
| 5 | jobs: |
| 6 | |
| 7 | build: |
| 8 | name: Run tests |
| 9 | runs-on: ubuntu-latest |
| 10 | steps: |
| 11 | |
| 12 | - name: Set up Go 1.x |
| 13 | uses: actions/setup-go@v2 |
| 14 | with: |
| 15 | go-version: ^1.14 |
| 16 | id: go |
| 17 | |
| 18 | - name: Check out code into the Go module directory |
| 19 | uses: actions/checkout@v2 |
| 20 | |
| 21 | - name: Build |
| 22 | run: go build -v . |
| 23 | |
| 24 | - name: Test |
| 25 | run: go test -v ./... |