diff --git a/.github/workflows/system-tests.yaml b/.github/workflows/system-tests.yaml new file mode 100644 index 00000000..252a1684 --- /dev/null +++ b/.github/workflows/system-tests.yaml @@ -0,0 +1,47 @@ +name: System tests + +on: + pull_request: + types: [labeled] + +jobs: + gather-refs: + if: ${{ github.event.label.name == 'trigger-system-tests' }} + runs-on: ubuntu-latest + outputs: + ref-tutorials: ${{ steps.ref-tutorials.outputs.shorthash }} + steps: + - id: ref-tutorials + uses: nmbgeek/github-action-get-latest-commit@main + with: + owner: precice + repo: tutorials + branch: develop + - id: report-refs + name: Report Git refs + run: | + printf 'Tutorials: ${{ steps.ref-tutorials.outputs.shorthash }}\n ${{ steps.ref-tutorials.outputs.description }}\n----------\n' + - id: summary + name: Prepare Markdown summary + run: | + echo "### Micro-Manager" >> $GITHUB_STEP_SUMMARY + echo "Reference (pull request): \`${{ github.event.pull_request.head.sha }}\`" >> $GITHUB_STEP_SUMMARY + echo "Pull request number: [${{ github.event.number }}](https://github.com/precice/micro-manager/pull/${{ github.event.number }})" >> $GITHUB_STEP_SUMMARY + echo "### DuMux adapter" >> $GITHUB_STEP_SUMMARY + echo "Using v3.0.0 (pinned)" >> $GITHUB_STEP_SUMMARY + echo "### Tutorials" >> $GITHUB_STEP_SUMMARY + echo "Reference (develop): [\`${{ steps.ref-tutorials.outputs.shorthash }}\`](https://github.com/precice/tutorials/commit/${{ steps.ref-tutorials.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY + echo "Description:" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + echo "${{ steps.ref-tutorials.outputs.description }}" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + + run-system-tests: + if: ${{ github.event.label.name == 'trigger-system-tests' }} + needs: gather-refs + uses: precice/tutorials/.github/workflows/run_testsuite_workflow.yml@develop + with: + suites: micro_manager_test + build_args: TUTORIALS_REF:${{ needs.gather-refs.outputs.ref-tutorials }},MICRO_MANAGER_PR:${{ github.event.number }},MICRO_MANAGER_REF:${{ github.event.pull_request.head.sha }},DUMUX_ADAPTER_REF:v3.0.0 + system_tests_branch: develop + log_level: "DEBUG"