mugit/.github/workflows/ci.yml (view raw)
| 1 | name: ci |
| 2 | on: |
| 3 | workflow_dispatch: |
| 4 | push: |
| 5 | |
| 6 | jobs: |
| 7 | release: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - uses: actions/checkout@v5 |
| 11 | |
| 12 | - name: Set up Go |
| 13 | uses: actions/setup-go@v5 |
| 14 | with: |
| 15 | go-version-file: go.mod |
| 16 | cache-dependency-path: go.mod |
| 17 | |
| 18 | - name: Build |
| 19 | run: go build . |
| 20 | |
| 21 | - name: Tests |
| 22 | run: go test -v -race ./... |