tasks: iocscanner minor improvements #1238
This file contains hidden or 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
| name: Build status | |
| on: | |
| push: | |
| paths: | |
| - 'daemon/**' | |
| - '.github/workflows/go.yml' | |
| pull_request: | |
| paths: | |
| - 'daemon/**' | |
| - '.github/workflows/go.yml' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go 1.23.0 | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.23.0 | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v3 | |
| - name: Get dependencies | |
| run: | | |
| sudo apt-get install git libnetfilter-queue-dev libmnl-dev libpcap-dev protobuf-compiler | |
| export GOPATH=~/go | |
| export PATH=$PATH:$GOPATH/bin | |
| go install github.com/golang/protobuf/protoc-gen-go@latest | |
| go install google.golang.org/protobuf/cmd/[email protected] | |
| go install google.golang.org/grpc/cmd/[email protected] | |
| cd proto | |
| make ../daemon/ui/protocol/ui.pb.go | |
| cd ../daemon | |
| go mod tidy; go mod vendor | |
| - name: Build | |
| run: | | |
| cd daemon | |
| go build -v . | |
| - name: Test | |
| run: | | |
| cd daemon | |
| sudo PRIVILEGED_TESTS=1 NETLINK_TESTS=1 go test ./... |