Remove operation conflict check from newversion executor (#696) #3169
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: Test | |
| on: push | |
| jobs: | |
| unit: | |
| name: Unit tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Restore cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Run tests | |
| run: | | |
| make run/unit-tests | |
| - name: Upload coverage to Codecov | |
| run: bash <(curl -s https://codecov.io/bash) | |
| integration: | |
| name: Integration tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Restore cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Set up KinD cluster | |
| uses: helm/[email protected] | |
| with: | |
| node_image: kindest/node:v1.27.3 | |
| - name: Run tests | |
| run: | | |
| echo "INFO: Running integration tests (using KUBECONFIG from kind-action)..." | |
| go test -tags=integration -count=1 -timeout 20m -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Upload coverage to Codecov | |
| run: bash <(curl -s https://codecov.io/bash) | |
| runtime-integration: | |
| name: Runtime Integration tests | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| k8s-version: [v1.25.11, v1.26.6, v1.27.3] | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Restore cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Set up KinD cluster | |
| uses: helm/[email protected] | |
| with: | |
| node_image: kindest/node:${{ matrix.k8s-version }} | |
| - name: Run tests | |
| run: | | |
| echo "INFO: Running runtime integration tests (using KUBECONFIG from kind-action for k8s ${{ matrix.k8s-version }} )..." | |
| go test -tags=integration -count=1 -timeout 20m ./internal/adapters/runtime/kubernetes/... |