.github/workflows/go.yml
raw| 1 | name: Go |
| 2 | |
| 3 | on: [push, pull_request, workflow_dispatch] |
| 4 | |
| 5 | jobs: |
| 6 | |
| 7 | build: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - uses: actions/checkout@v3 |
| 11 | |
| 12 | - name: Set up Go |
| 13 | uses: actions/setup-go@v3 |
| 14 | with: |
| 15 | go-version: 1.18 |
| 16 | |
| 17 | - name: Build |
| 18 | run: go build -v ./... |
| 19 | |
| 20 | - name: Test |
| 21 | run: go test -v ./... |