Verify jalien-setup #14
This file contains 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: Verify jalien-setup | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'information' | |
type: choice | |
options: | |
- information | |
- debug | |
- warning | |
- critical | |
tags: | |
description: 'Purpose of Run This Workflow?' | |
required: false | |
type: string | |
jobs: | |
test-jalien-setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Clone jalien-setup | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
git clone https://gitlab.cern.ch/jalien/jalien-setup | |
- name: Clone jalien | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
git clone https://gitlab.cern.ch/jalien/jalien | |
cd ./jalien-setup && git checkout origin/updated-sql8-setup | |
- name: debug | |
run: cat ${{ github.workspace }}/../jalien-setup/bash/tasks/create_shared.sh | |
- name: Create config.sh for bash | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
echo " | |
export BASE_DIR=$(pwd) | |
export SCRIPT_DIR=$(pwd)/jalien-setup/bash | |
export SHARED_VOLUME=$(pwd)/SHARED_VOLUME | |
export JALIEN=$(pwd)/jalien | |
export JALIEN_SETUP=$(pwd)/jalien-setup | |
export JALIEN_SOURCE=https://gitlab.cern.ch/jalien/jalien | |
export JALIEN_SETUP_SOURCE=https://github.com/FYP-Jalien/jalien-setup | |
export CE_NAME=shared_volume_JCentral-dev-CE_1 | |
export JCENTRAL_NAME=shared_volume_JCentral-dev_1 | |
export SCHEDD_NAME=shared_volume_schedd_1 | |
export SE_NAME=shared_volume_JCentral-dev-SE_1 | |
export WORKER_NAME=shared_volume_worker1_1 | |
" >> ${{ github.workspace }}/../jalien-setup/bash/config/config.sh | |
- name: Run jalien-setup bash scripts | |
run: | | |
cd ${{ github.workspace }}/../jalien-setup/bash | |
./start.sh --shared | |
- name: Clone test-suite | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
git clone https://github.com/FYP-Jalien/test-suite | |
- name: Create .env for test-suite | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
echo " | |
export SHARED_VOLUME_PATH=$(pwd)/SHARED_VOLUME | |
export JALIEN_SETUP_PATH=$(pwd)/jalien-setup | |
export CONTAINER_NAME_CE=shared_volume_JCentral-dev-CE_1 | |
export CONTAINER_NAME_CENTRAL=shared_volume_JCentral-dev_1 | |
export CONTAINER_NAME_SCHEDD=shared_volume_schedd_1 | |
export CONTAINER_NAME_SE=shared_volume_JCentral-dev-SE_1 | |
export CONTAINER_NAME_WORKER=shared_volume_worker1_1 | |
export SCRIPT_DIR=$(pwd)/test-suite | |
export ALIENV_PATH=$(pwd)/test-suite/files/alma-alienv | |
export SAMPLE_JDL_PATH=$(pwd)/test-suite/files/sample_test.jdl | |
export TESTSCRIPT_PATH=$(pwd)/test-suite/files/testscript_test.sh | |
" >> ${{ github.workspace }}/../test-suite/.env | |
- name: Run test-suite for container specific tests | |
run: | | |
cd ${{ github.workspace }}/../test-suite | |
./index.sh --container-only |