ovsh: replace usage of unsafe package with binary marshaling and unmarshaling #125
Workflow file for this run
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: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: 1.25 | |
- name: Set up OVS | |
run: | | |
sudo apt-get update | |
sudo apt install openvswitch-switch | |
sudo ovs-vsctl add-br ovsbr0 | |
- uses: actions/checkout@v5 | |
- name: License check | |
run: | | |
echo "=========START LICENSE CHECK============" | |
./scripts/licensecheck.sh | |
- name: Lint | |
run: | | |
# install tools | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
go install golang.org/x/lint/golint@latest | |
go install github.com/praetorian-inc/gokart@latest | |
echo "=========START VET============" | |
go vet ./... | |
echo "=========START GO FMT CHECK============" | |
./scripts/gofmt.sh | |
echo "=========START GO LINT CHECK============" | |
./scripts/golint.sh | |
echo "=========START STATICCHECK============" | |
staticcheck ./... | |
echo "=========START LINT============" | |
golint -set_exit_status ./cmd/... ./internal/... | |
echo "=========START SECURITY SCANNING============" | |
gokart scan | |
- name: Build, lint, and test | |
run: | | |
# install tools | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
go install golang.org/x/lint/golint@latest | |
go install github.com/praetorian-inc/gokart@latest | |
# download deps | |
go mod download | |
echo "=========START BUILD============" | |
go build -v -tags=gofuzz ./... | |
echo "=========START VET============" | |
go vet ./... | |
echo "=========START GO FMT CHECK============" | |
./scripts/gofmt.sh | |
echo "=========START GO LINT CHECK============" | |
./scripts/golint.sh | |
echo "=========START STATICCHECK============" | |
staticcheck ./... | |
echo "=========START LINT============" | |
golint -set_exit_status ./cmd/... ./internal/... | |
echo "=========START TESTS IN OVS============" | |
go test -v -race -short ./ovs/ | |
echo "=========START TESTS IN OVSDB============" | |
go test -v -race ./ovsdb/ | |
go test -c -race ./ovsdb | |
echo "=========START TESTS IN OVSNL============" | |
go test -v -race ./ovsnl/ | |
echo "=========START OVSDB.TEST============" | |
sudo ./ovsdb.test -test.v |