make UnixgramWriter resilient to connection drops (#108) #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: ${{ github.repository == 'Netflix/spectator-go' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [1.21, 1.22] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: | | |
go version | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2 | |
golangci-lint --version | |
- name: Run build | |
run: | | |
go build ./... | |
- name: Run tests | |
run: | | |
go test -race -v ./... | |
golangci-lint run | |
- name: Run linter | |
run: | | |
golangci-lint run |