From 6d46c2a03a22934423ff93a26758f06ecae28340 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 16 Aug 2023 09:18:01 +0200 Subject: [PATCH] split end2end test in separate steps --- .github/workflows/end2end.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/end2end.yml b/.github/workflows/end2end.yml index 06a192661f..e1741c95bf 100644 --- a/.github/workflows/end2end.yml +++ b/.github/workflows/end2end.yml @@ -30,7 +30,7 @@ jobs: rm -f develop.tar.gz done - - name: End-to-end test of EasyBuild + - name: Set up environment shell: bash run: | export PATH=$PWD:$PATH @@ -49,15 +49,25 @@ jobs: # tests are run with root privileges, so we need to tell EasyBuild that's OK... export EASYBUILD_ALLOW_USE_AS_ROOT_AND_ACCEPT_CONSEQUENCES=1 + # save full environment to use in subsequent steps, + # see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable + while read line; do echo "$line" >> $GITHUB_ENV ; done < <(env) + + - name: Run commands to check test environment + cmds=( + "whoami" + "pwd" "env | sort" "eb --version" "eb --show-system-info" "eb --check-eb-deps" "eb --show-config" - "eb bzip2-1.0.8.eb --trace --robot" ) for cmd in "${cmds[@]}"; do echo ">>> $cmd" eval "$cmd" done + + - name: End-to-end test of installing bzip2 with EasyBuild + run: eb bzip2-1.0.8.eb --trace --robot