| 1 | name: unit-test |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | - release/* |
| 8 | pull_request: |
| 9 | branches: |
| 10 | - master |
| 11 | |
| 12 | jobs: |
| 13 | test: |
| 14 | strategy: |
| 15 | matrix: |
| 16 | go-version: [1.24.x, 1.25.x, 1.26.x] |
| 17 | os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm] |
| 18 | runs-on: ${{ matrix.os }} |
| 19 | |
| 20 | steps: |
| 21 | - name: Check out code |
| 22 | uses: actions/checkout@v2 |
| 23 | |
| 24 | - name: Set up Go |
| 25 | uses: actions/setup-go@v2 |
| 26 | with: |
| 27 | go-version: ${{ matrix.go-version }} |
| 28 | |
| 29 | - name: Get dependencies |
| 30 | run: go mod download |
| 31 | |
| 32 | - name: Run test |
| 33 | run: go test -v |