Skip to content

Commit

Permalink
Merge branch 'TASK-4445' of github.com:opencb/opencga into TASK-4445
Browse files Browse the repository at this point in the history
  • Loading branch information
j-coll committed Jul 7, 2023
2 parents e75469a + ca800f5 commit c7b53d1
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/check-junit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,36 @@ on:
default: ""

jobs:
test:
get_profiles:
name: Test JUnit
runs-on: ubuntu-22.04
outputs:
profiles: ${{ steps.getter.outputs.profiles }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '10'
- name: Building string profiles to run
id: get_profiles
id: getter
run: |
if [ -f "./.github/workflows/scripts/get_profiles.sh" ]; then
chmod +x ./.github/workflows/scripts/get_profiles.sh
echo "profiles=$(./.github/workflows/scripts/get_profiles.sh ${{ inputs.short_tests }} ${{ inputs.medium_tests }} ${{ inputs.long_tests }})" >> $GITHUB_OUTPUT
fi
- name: Building string profiles to run
uses: ./.github/workflows/test-analysis.yml
secrets: inherit
with:
test_profile: ${{ steps.get_profiles.outputs.profiles }}
report_context: development
mvn_opts: ${{ inputs.mvn_opts }}
echo_log:
needs: get_profiles
runs-on: ubuntu-22.04
steps:
- name: Echo profiles
id: log
run: echo "Executing testing profiles -> ${{ needs.get_profiles.outputs.profiles }}"

test:
needs: [ get_profiles, echo_log ]
uses: ./.github/workflows/test-analysis.yml
with:
test_profile: ${{ needs.get_profiles.outputs.profiles }}
report_context: development
mvn_opts: ${{ inputs.mvn_opts }}
secrets: inherit

0 comments on commit c7b53d1

Please sign in to comment.