.github/workflows/go.yml
raw| 1 | name: Go |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | pull_request: |
| 7 | branches: [ master ] |
| 8 | |
| 9 | jobs: |
| 10 | |
| 11 | build: |
| 12 | name: Build |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | |
| 16 | - name: Set up Go 1.18 |
| 17 | uses: actions/setup-go@v1 |
| 18 | with: |
| 19 | go-version: 1.18 |
| 20 | id: go |
| 21 | |
| 22 | - name: Check out code into the Go module directory |
| 23 | uses: actions/checkout@v2 |
| 24 | |
| 25 | - name: Get dependencies |
| 26 | run: | |
| 27 | go get -v -t -d ./... |
| 28 | |
| 29 | - name: Test |
| 30 | run: go test -v ./... |