Skip to content

conn: reduce initial memory in Receive() #143

conn: reduce initial memory in Receive()

conn: reduce initial memory in Receive() #143

name: Linux Integration Test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
go-version: ["1.18", "1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Create a network namespace for privileged tests
run: sudo ip netns add unpriv0
- name: Build netlink test binary for privileged tests
run: go test -c -race .
- name: Run privileged netlink tests
run: sudo ./netlink.test -test.v -test.run TestIntegration*
- name: Build integration test binary for privileged tests
working-directory: ./internal/integration
run: go test -c -race .
- name: Run privileged integration tests
working-directory: ./internal/integration
run: sudo ./integration.test -test.v