Skip to content

netlink: test debug output on big-endian systems #354

netlink: test debug output on big-endian systems

netlink: test debug output on big-endian systems #354

name: Linux Integration Test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
go-version:
- "1.25"
- "1.26"
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- 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