From 9b21de004214a08a25db8678e940989d6d316fd5 Mon Sep 17 00:00:00 2001 From: Akira Moroo Date: Mon, 21 Nov 2022 20:08:15 +0900 Subject: [PATCH] tests: Add unit tests for aarch64 NOTE: Because docker pull fallbacks to linux/amd64 even if explicitly specify image platform when linux/arm64 image not found, the unit tests will fail. To avoid this, `--local` option is added to build local container image. This option should be removed after linux/arm64 container image is pushed to the registry. Signed-off-by: Akira Moroo --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 08fbfd98..9e96d611 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,6 +62,21 @@ pipeline { } } } + stage ('AArch64 Unit Tests') { + agent { node { label 'focal-arm64' } } + stages { + stage ('Checkout') { + steps { + checkout scm + } + } + stage('Run unit tests') { + steps { + sh "scripts/dev_cli.sh --local tests --unit" + } + } + } + } } } }