mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 00:06:38 +00:00
* reworked peer connection establishment logic eliminating race conditions and deadlocks while running many peers
33 lines
970 B
YAML
33 lines
970 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
name: Test Code
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.17.x]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: update limits.d
|
|
run: |
|
|
cat <<'EOF' | sudo tee -a /etc/security/limits.d/wt.conf
|
|
root soft nproc 65535
|
|
root hard nproc 65535
|
|
root soft nofile 65535
|
|
root hard nofile 65535
|
|
$(whoami) soft nproc 65535
|
|
$(whoami) hard nproc 65535
|
|
$(whoami) soft nofile 65535
|
|
$(whoami) hard nofile 65535
|
|
EOF
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Test
|
|
run: GOBIN=$(which go) && sudo --preserve-env=GOROOT $GOBIN test -p 1 ./... |