Skip to content

Bump golang.org/x/sys from 0.7.0 to 0.12.0 #127

Bump golang.org/x/sys from 0.7.0 to 0.12.0

Bump golang.org/x/sys from 0.7.0 to 0.12.0 #127

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs:
race-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Export constant environmental variables
uses: cardinalby/export-env-action@v2
with:
envFile: .github/workflows/constants.env
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}.x
check-latest: true
cache: true
- name: Ensure main package builds
run: |
go build
# the test is compiled and run as root so that egress eddie can
# open nfqueues, which is a privileged operation
- run: |
go test -c -race -o egress-eddie.test
sudo ./egress-eddie.test -enable-ipv6=false -test.timeout 5m -test.v
binary-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Export constant environmental variables
uses: cardinalby/export-env-action@v2
with:
envFile: .github/workflows/constants.env
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}.x
check-latest: true
cache: true
# run the same tests as above but use a binary to process packets
# to test with landlock and seccomp filters active
- run: |
cd cmd/egress-eddie
CGO_ENABLED=0 go build -o ../../egress-eddie
cd ../../
go test -c -o egress-eddie.test
sudo ./egress-eddie.test -binary-tests -enable-ipv6=false -test.timeout 5m -test.v
fuzz:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Export constant environmental variables
uses: cardinalby/export-env-action@v2
with:
envFile: .github/workflows/constants.env
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}.x
check-latest: true
cache: true
- run: |
go test -fuzz Fuzz -run Config -fuzztime 10m