x/.github/workflows/ci.yml (view raw)
| 1 | name: ci |
| 2 | on: |
| 3 | workflow_dispatch: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | paths: ["**.go", "go.mod", "go.sum"] |
| 7 | pull_request: |
| 8 | paths: ["**.go", "go.mod", "go.sum"] |
| 9 | |
| 10 | jobs: |
| 11 | tests: |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - uses: actions/checkout@v5 |
| 15 | |
| 16 | - name: setup go |
| 17 | uses: actions/setup-go@v5 |
| 18 | with: |
| 19 | go-version-file: go.mod |
| 20 | cache-dependency-path: go.mod |
| 21 | |
| 22 | - name: test |
| 23 | run: go test -v ./... |