| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - main |
| 5 | pull_request: |
| 6 | branches: |
| 7 | - main |
| 8 | |
| 9 | name: Test |
| 10 | jobs: |
| 11 | test: |
| 12 | strategy: |
| 13 | matrix: |
| 14 | go-version: ["1.25.x"] |
| 15 | platform: [ubuntu-latest] |
| 16 | runs-on: ${{ matrix.platform }} |
| 17 | steps: |
| 18 | - name: Install Go |
| 19 | if: success() |
| 20 | uses: actions/setup-go@v2 |
| 21 | with: |
| 22 | go-version: ${{ matrix.go-version }} |
| 23 | - name: Checkout code |
| 24 | uses: actions/checkout@v2 |
| 25 | - name: Build |
| 26 | run: go build |
| 27 | - name: Run tests |
| 28 | run: go test ./... -v -covermode=count |