This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Add intelligent version detection for OVS 3.x+ #16
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: build | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| core: | |
| strategy: | |
| matrix: | |
| go-version: [1.20.x] | |
| platform: [ubuntu-latest] | |
| name: Build | |
| runs-on: ${{ matrix.platform }} | |
| env: | |
| GOBIN: /home/runner/.local/bin | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v3 | |
| - name: Amend Environment Path | |
| run: | | |
| mkdir -p /home/runner/.local/bin | |
| echo "/home/runner/.local/bin" >> $GITHUB_PATH | |
| - name: Setup Environment | |
| run: | | |
| mkdir -p .coverage | |
| echo "*** Current Directory ***" | |
| pwd | |
| echo "*** Environment Variables ***" | |
| env | sort | |
| echo "*** Executable Path ***" | |
| echo "$PATH" | tr ':' '\n' | |
| echo "*** Workspace Files ***" | |
| find . | |
| which make | |
| - name: Install prerequisites | |
| run: | | |
| sudo apt-get --assume-yes install make | |
| sudo apt-get --assume-yes install libnss3-tools | |
| sudo apt-get update | |
| sudo apt-get --assume-yes install openvswitch-switch | |
| sudo apt-get --assume-yes install ovn-central | |
| sudo systemctl start openvswitch-switch | |
| # sudo systemctl start ovn-northd | |
| - name: Install Go modules | |
| run: | | |
| make dep | |
| - name: Open vSwitch Checks | |
| run: | | |
| sudo ovs-vsctl --version | |
| sudo ovs-vsctl show | |
| sudo systemctl status openvswitch-switch.service | |
| sudo ovs-vsctl add-br br0 | |
| sudo ovs-vsctl list bridge | |
| sudo ps -ef | |
| - name: Validate prerequisites | |
| run: | | |
| echo "*** Local binaries ***" | |
| find /home/runner/.local/bin | |
| - name: Run tests | |
| run: | | |
| make test | |
| - name: Generate coverage report | |
| run: make coverage | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test Coverage Report | |
| path: .coverage/coverage.html |