Update ovs kind tests #8740
Workflow file for this run
This file contains 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: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'release/**' | |
jobs: | |
yamllint: | |
uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main | |
shellcheck: | |
uses: networkservicemesh/.github/.github/workflows/shellcheck.yaml@main | |
golangci-lint: | |
uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main | |
exclude-fmt-errorf: | |
uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main | |
checkgomod: | |
uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main | |
### EXTENDED OVS SUITE | |
kind-ovs-extra: | |
runs-on: ubuntu-latest | |
env: | |
KUBERNETES_VERSION: "v1.25.0" | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.0 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: 1.20.5 | |
github-token: ${{ github.token }} | |
- name: Set go env | |
run: | | |
echo GOPATH=$GITHUB_WORKSPACE >> $GITHUB_ENV | |
echo GO111MODULE=on >> $GITHUB_ENV | |
echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH | |
- uses: actions/checkout@v2 | |
with: | |
path: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- uses: engineerd/setup-kind@v0.5.0 | |
with: | |
config: src/github.com/${{ github.repository }}/cluster-config.yaml | |
version: v0.13.0 | |
image: kindest/node:${{ env.KUBERNETES_VERSION }} | |
- name: Check kind cluster | |
run: | | |
kubectl version | |
kubectl get pods -A -o wide | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Integration tests | |
run: | | |
go test -count 1 -timeout 1h -race -v ./tests_ovs_extended -parallel 4 | |
env: | |
ARTIFACTS_DIR: ovs_extra-logs/${{ env.KUBERNETES_VERSION }} | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Upload artifacts | |
if: ${{ success() || failure() || cancelled() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ovs_extra logs | |
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}/tests_ovs_extended/ovs_extra-logs |