Fix and test goroutine leak #827
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: Go | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Build and Test using Golang ${{ matrix.go-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.19.x, 1.20.x, stable] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: go/src/github.com/refraction-networking/conjure | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install protobuf-compiler software-properties-common -y -q | |
sudo apt-get install libzmq3-dev libssl-dev pkg-config libgmp3-dev -y -q | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Test | |
run: | | |
cd $GITHUB_WORKSPACE/go/src/github.com/refraction-networking/conjure | |
export GOPATH="$GITHUB_WORKSPACE/go" | |
go test -v -race ./... | |
- name: Build app | |
run: | | |
cd $GITHUB_WORKSPACE/go/src/github.com/refraction-networking/conjure | |
make app | |
- name: Build registration-server | |
run: | | |
cd $GITHUB_WORKSPACE/go/src/github.com/refraction-networking/conjure | |
make registration-server | |
golangci-lint: | |
name: Format and Lint with golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install protobuf-compiler software-properties-common -y -q | |
sudo apt-get install libzmq3-dev libssl-dev pkg-config libgmp3-dev -y - | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: -v --disable structcheck,govet --timeout 5m |