Update README about new xdp.frags flag #15
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
# Anytime we push to any branch | |
on: push | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Install libpcap | |
run: sudo apt-get install -y libpcap0.8-dev | |
- name: Check lint | |
# gofmt doesn't report any changes | |
run: test -z $(gofmt -l ./ | tee /dev/stderr) | |
- name: Run tests | |
# tests need to run as root to load XDP programs | |
run: sudo -E env "PATH=$PATH" go test ./... |