| 1 |
on: |
| 2 |
push: |
| 3 |
branches: ['master'] |
| 4 |
pull_request: |
| 5 |
name: build |
| 6 |
jobs: |
| 7 |
test: |
| 8 |
strategy: |
| 9 |
matrix: |
| 10 |
go-version: [1.24.x, 1.25.x] |
| 11 |
os: [ubuntu-latest, macos-latest, windows-latest] |
| 12 |
runs-on: ${{ matrix.os }} |
| 13 |
steps: |
| 14 |
- name: Install Go |
| 15 |
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 |
| 16 |
with: |
| 17 |
go-version: ${{ matrix.go-version }} |
| 18 |
- name: Checkout code |
| 19 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 20 |
- name: Test |
| 21 |
run: go test -covermode atomic -coverprofile='${{ matrix.os }}-${{ matrix.go-version }}.cov' ./... |
| 22 |
- name: Coveralls Parallel |
| 23 |
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b |
| 24 |
with: |
| 25 |
file: '${{ matrix.os }}-${{ matrix.go-version }}.cov' |
| 26 |
parallel: true |
| 27 |
finish: |
| 28 |
needs: test |
| 29 |
runs-on: ubuntu-latest |
| 30 |
steps: |
| 31 |
- name: Coveralls Finished |
| 32 |
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b |
| 33 |
with: |
| 34 |
parallel-finished: true |