This repository was archived by the owner on Oct 28, 2025. It is now read-only.
build(deps): bump DavidAnson/markdownlint-cli2-action from 19.1.0 to 20.0.0 #999
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: Integration tests | |
| # TODO(ver) the integration test cases should not be enumerated in the workflow, | |
| # but invoked via a general test runner. | |
| on: [pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: linkerd/dev/actions/setup-tools@v46 | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 | |
| with: | |
| path: target/buildx | |
| key: buildx-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: buildx-${{ runner.os }}- | |
| - run: just controller-build-image | |
| --output type=docker | |
| --tag 'ghcr.io/linkerd/failover:git-${{ github.sha }}' | |
| --cache-from type=local,src=target/buildx | |
| --cache-to type=local,dest=target/buildx | |
| - run: just-dev prune-action-cache target/buildx | |
| - run: mkdir -p /tmp/images | |
| - run: docker save 'ghcr.io/linkerd/failover:git-${{ github.sha }}' --output /tmp/images/controller.tar | |
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 | |
| with: | |
| name: images | |
| path: /tmp/images | |
| install-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| needs: [docker-build] | |
| steps: | |
| - uses: linkerd/dev/actions/setup-tools@v46 | |
| - run: just-k3d create use | |
| - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 | |
| with: | |
| name: images | |
| path: /tmp/images | |
| - run: just-k3d import /tmp/images/controller.tar | |
| - name: Install linkerd | |
| run: | | |
| curl -sL https://run.linkerd.io/install-edge | sh | |
| export PATH=$PATH:~/.linkerd2/bin | |
| linkerd install --crds | kubectl apply -f - | |
| linkerd install --set proxy.enableShutdownEndpoint=true | kubectl apply -f - | |
| linkerd check | |
| - name: Install linkerd-smi | |
| run: | | |
| helm repo add linkerd-smi https://linkerd.github.io/linkerd-smi | |
| helm repo up | |
| helm install linkerd-smi -n linkerd-smi --create-namespace --wait linkerd-smi/linkerd-smi | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Install current linkerd-failover | |
| run: | | |
| helm install linkerd-failover -n linkerd-failover --create-namespace --wait \ | |
| --set image.registry=ghcr.io/linkerd \ | |
| --set image.tag=git-${{ github.sha }} \ | |
| charts/linkerd-failover | |
| - name: Test routing to primary | |
| uses: ./.github/actions/failover-test | |
| with: | |
| westReplicas: 1 | |
| westShouldReceiveTraffic: true | |
| centralReplicas: 1 | |
| centralShouldReceiveTraffic: false | |
| eastReplicas: 1 | |
| eastShouldReceiveTraffic: false | |
| - name: Test failover to secondaries | |
| uses: ./.github/actions/failover-test | |
| with: | |
| westReplicas: 0 | |
| westShouldReceiveTraffic: false | |
| centralReplicas: 1 | |
| centralShouldReceiveTraffic: true | |
| eastReplicas: 1 | |
| eastShouldReceiveTraffic: true | |
| - name: Test removal of one secondary | |
| uses: ./.github/actions/failover-test | |
| with: | |
| westReplicas: 0 | |
| westShouldReceiveTraffic: false | |
| centralReplicas: 0 | |
| centralShouldReceiveTraffic: false | |
| eastReplicas: 1 | |
| eastShouldReceiveTraffic: true | |
| - name: Test reestablishment of primary | |
| uses: ./.github/actions/failover-test | |
| with: | |
| westReplicas: 1 | |
| westShouldReceiveTraffic: true | |
| centralReplicas: 0 | |
| centralShouldReceiveTraffic: false | |
| eastReplicas: 1 | |
| eastShouldReceiveTraffic: false |