Update module golang.org/x/mod to v0.40.0 [SECURITY] (main) #79
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: Quality check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v7 | |
| - name: Install Go | |
| run: | | |
| make install-go | |
| echo "$(pwd)/build/_output/bin/go/bin" >> "$GITHUB_PATH" | |
| - name: Lint | |
| run: make lint | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v7 | |
| - name: Install Go | |
| run: | | |
| make install-go | |
| echo "$(pwd)/build/_output/bin/go/bin" >> "$GITHUB_PATH" | |
| - name: Build | |
| run: make build | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| needs: [lint, build] | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v7 | |
| - name: Install Go | |
| run: | | |
| make install-go | |
| echo "$(pwd)/build/_output/bin/go/bin" >> "$GITHUB_PATH" | |
| - name: Run unit tests | |
| run: make unit-tests | |
| cni-tests: | |
| runs-on: ubuntu-latest | |
| needs: [lint, build] | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v7 | |
| - name: Install Go | |
| run: | | |
| make install-go | |
| echo "$(pwd)/build/_output/bin/go/bin" >> "$GITHUB_PATH" | |
| - name: Load openvswitch kernel module | |
| run: sudo modprobe openvswitch | |
| - name: Run CNI tests | |
| run: make OCI_BIN=docker cni-tests | |
| kubernetes-tests: | |
| runs-on: ubuntu-latest | |
| needs: [lint, build] | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v7 | |
| - name: Install Go | |
| run: | | |
| make install-go | |
| echo "$(pwd)/build/_output/bin/go/bin" >> "$GITHUB_PATH" | |
| - name: Load openvswitch kernel module | |
| run: sudo modprobe openvswitch | |
| - name: Create Kind cluster with OVS and Multus | |
| run: make cluster-up | |
| - name: Build and deploy ovs-cni to the cluster | |
| run: make cluster-sync | |
| - name: Run Kubernetes tests | |
| run: make E2E_TEST_ARGS="-ginkgo.v -test.v -test.timeout 20m -ginkgo.noColor --ginkgo.junit-report=/tmp/junit-functest.xml" kubernetes-tests | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: functest-results | |
| path: /tmp/junit-functest.xml | |
| if-no-files-found: ignore | |
| - name: Tear down Kind cluster | |
| if: always() | |
| run: make cluster-down |