mirror of https://github.com/linkerd/linkerd2.git
Only run the ARM integration tests for stable releases (#4986)
This commit is contained in:
parent
d98c11b47e
commit
d6bcd1e906
|
@ -136,9 +136,11 @@ jobs:
|
||||||
needs: [docker_build]
|
needs: [docker_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
# actions/checkout@v2
|
# actions/checkout@v2
|
||||||
uses: actions/checkout@722adc6
|
uses: actions/checkout@722adc6
|
||||||
- name: Try to load cached Go modules
|
- name: Try to load cached Go modules
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
# actions/cache@v1.1.2
|
# actions/cache@v1.1.2
|
||||||
uses: actions/cache@70655ec
|
uses: actions/cache@70655ec
|
||||||
with:
|
with:
|
||||||
|
@ -147,6 +149,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
- name: Install linkerd CLI
|
- name: Install linkerd CLI
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
run: |
|
run: |
|
||||||
TAG="$(CI_FORCE_CLEAN=1 bin/root-tag)"
|
TAG="$(CI_FORCE_CLEAN=1 bin/root-tag)"
|
||||||
CMD="$PWD/target/release/linkerd2-cli-$TAG-linux-amd64"
|
CMD="$PWD/target/release/linkerd2-cli-$TAG-linux-amd64"
|
||||||
|
@ -157,22 +160,26 @@ jobs:
|
||||||
echo "Installed Linkerd CLI version: $TAG"
|
echo "Installed Linkerd CLI version: $TAG"
|
||||||
echo "::set-env name=CMD::$CMD"
|
echo "::set-env name=CMD::$CMD"
|
||||||
- name: Set KUBECONFIG environment variables
|
- name: Set KUBECONFIG environment variables
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $HOME/.kube
|
mkdir -p $HOME/.kube
|
||||||
echo "${{ secrets.ARM64_KUBECONFIG }}" > $HOME/.kube/config
|
echo "${{ secrets.ARM64_KUBECONFIG }}" > $HOME/.kube/config
|
||||||
echo ::set-env name=KUBECONFIG::$HOME/.kube/config
|
echo ::set-env name=KUBECONFIG::$HOME/.kube/config
|
||||||
kubectl cluster-info
|
kubectl cluster-info
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
env:
|
env:
|
||||||
RUN_ARM_TEST: 1
|
RUN_ARM_TEST: 1
|
||||||
run: bin/tests --skip-kind-create "$CMD"
|
run: bin/tests --skip-kind-create "$CMD"
|
||||||
- name: CNI tests
|
- name: CNI tests
|
||||||
|
if: startsWith(github.ref, 'refs/tags/stable')
|
||||||
run: |
|
run: |
|
||||||
export TAG="$($CMD version --client --short)"
|
export TAG="$($CMD version --client --short)"
|
||||||
go test -cover -race -v -mod=readonly ./cni-plugin/test -integration-tests
|
go test -cover -race -v -mod=readonly ./cni-plugin/test -integration-tests
|
||||||
- name: Test cleanup
|
- name: Test cleanup
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: bin/test-cleanup
|
# will fail if other steps didn't run, so ignore error
|
||||||
|
run: bin/test-cleanup || true
|
||||||
choco_pack:
|
choco_pack:
|
||||||
# only runs for stable tags. The conditionals are at each step level instead of the job level
|
# only runs for stable tags. The conditionals are at each step level instead of the job level
|
||||||
# otherwise the jobs below that depend on this one won't run
|
# otherwise the jobs below that depend on this one won't run
|
||||||
|
|
Loading…
Reference in New Issue