Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CAP_NET_RAW to github worker running tests #439

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.22
- run: sudo apt-get install libpcap-dev
- run: sudo apt-get install libpcap-dev libcap2-bin
- run: go build -v ./...
# fuzzing, need to specify each package separately
- run: go test -v -fuzz='.*' -fuzztime=10s ./ptp/protocol/
- run: go test -v -fuzz='.*' -fuzztime=10s ./ntp/protocol/
- run: go test -v -fuzz='.*' -fuzztime=10s ./ntp/chrony/
- name: Run coverage
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
run: sudo capsh --inh=cap_net_raw --print -- -c "go test -v -race -coverprofile=coverage.txt -covermode=atomic ./..."
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Loading