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