Skip to content

Check Junit tests. Hadoop hdp3.1. :opencga-analysis. Short Medium Long tests. #83

Check Junit tests. Hadoop hdp3.1. :opencga-analysis. Short Medium Long tests.

Check Junit tests. Hadoop hdp3.1. :opencga-analysis. Short Medium Long tests. #83

name: Check junits
run-name: "Check Junit tests. Hadoop ${{ inputs.hadoop }}. ${{ inputs.module == 'all' && '' || format(':{0}. ', inputs.module ) }}${{ inputs.short_tests && 'Short ' || '' }}${{ inputs.medium_tests && 'Medium ' || '' }}${{ inputs.long_tests && 'Long ' || '' }}${{ ! ( inputs.short_tests || inputs.medium_tests || inputs.long_tests ) && 'Short Medium Long ' || '' }}tests."
on:
workflow_dispatch:
inputs:
hadoop:
type: choice
description: 'Hadoop flavour.'
required: false
default: "hdp3.1"
options:
- "hdp3.1"
- "hdi5.1"
- "emr6.1"
- "emr6.13"
module:
type: choice
description: 'OpenCGA module to test.'
required: false
default: "all"
options:
- "all"
- "opencga-core"
- "opencga-catalog"
- "opencga-storage"
- "opencga-analysis"
- "opencga-master"
short_tests:
type: boolean
required: false
default: true
medium_tests:
type: boolean
required: false
default: false
long_tests:
type: boolean
required: false
default: false
mvn_opts:
type: string
required: false
default: ""
jobs:
get_profiles:
name: Test JUnit
runs-on: ubuntu-22.04
outputs:
profiles: ${{ steps.getter.outputs.profiles }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '10'
- name: Building string profiles to run
id: validate
run: |
if [ -f "./.github/workflows/scripts/get_profiles.sh" ]; then
chmod +x ./.github/workflows/scripts/get_profiles.sh
profiles=$(./.github/workflows/scripts/get_profiles.sh ${{ inputs.short_tests }} ${{ inputs.medium_tests }} ${{ inputs.long_tests }})
echo "profiles=$profiles" >> $GITHUB_OUTPUT
echo "Executing testing profiles -> $profiles" >> $GITHUB_STEP_SUMMARY
fi
test:
needs: [ get_profiles ]
uses: ./.github/workflows/test-analysis.yml
with:
test_profile: ${{ needs.get_profiles.outputs.profiles }}
mvn_opts: ${{ inputs.mvn_opts }}
hadoop: ${{ inputs.hadoop }}
module: ${{ inputs.module }}
secrets: inherit