| 1 | name: Go Test |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | pull_request: |
| 8 | paths: |
| 9 | - .github/** |
| 10 | - go.mod |
| 11 | - go.sum |
| 12 | - storage/** |
| 13 | - testhelpers/** |
| 14 | - version/** |
| 15 | |
| 16 | env: |
| 17 | GO_VERSION: "1.14.4" |
| 18 | |
| 19 | jobs: |
| 20 | go_test: |
| 21 | name: go test |
| 22 | runs-on: ubuntu-latest |
| 23 | steps: |
| 24 | - uses: actions/checkout@v2 |
| 25 | - uses: actions/setup-go@v2 |
| 26 | with: |
| 27 | go-version: ${{ env.GO_VERSION }} |
| 28 | - run: | |
| 29 | go mod download |
| 30 | go test -v ./... -timeout=300s |