all: update Go to 1.25, bump all deps, CI cleanup, lint fixes #128
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: Download deps | |
run: go mod download | |
- 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/mgechev/revive@latest | |
go vet ./... | |
./scripts/gofmt.sh | |
./scripts/golint.sh | |
staticcheck ./... | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: -exclude=G115 ./... | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: | | |
echo "=========START TESTS IN OVS============" | |
go test -v -race -short ./ovs/ | |
echo "=========START TESTS IN OVSDB============" | |
sudo go test -v -race ./ovsdb/ | |
echo "=========START TESTS IN OVSNL============" | |
go test -v -race ./ovsnl/ |