Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-unit-tests #114

Merged
merged 11 commits into from
Aug 31, 2022
Prev Previous commit
Next Next commit
Run Unit and Integration Tests Separately.
RonnyFrayRegato committed Aug 18, 2022
commit 0ac914042952351a70d8d5a23e856f8a6a091d2f
73 changes: 35 additions & 38 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -68,43 +68,40 @@ jobs:
#chmod +x test.sh
#./test.sh
#shell: bash
#- name: Run Unit Tests
#run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source clean test jacoco:report-aggregate
#shell: bash
#- name: Run Integration Tests
#run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source integration-test verify -DskipTests
#shell: bash
#- name: Upload Jacoco report
#uses: actions/upload-artifact@v3
#with:
#name: jacoco-report
#path: jacoco-reports/aggregate/index.html
#- name: Upload test screenshots
#uses: actions/upload-artifact@v3
#with:
#name: test-screenshots
#path: test-screenshots/
- name: Show Webhook Payload
if: ${{ always() }}
run: cat ${{ github.event_path }}
- name: Send custom JSON data to Slack workflow
if: ${{ always() }}
id: slack
uses: slackapi/[email protected]
- name: Run Unit Tests
run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source clean test jacoco:report-aggregate
shell: bash
- name: Run Integration Tests
run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source integration-test verify -DskipTests
shell: bash
- name: Upload Jacoco report
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: jacoco-reports/aggregate/index.html
- name: Upload test screenshots
uses: actions/upload-artifact@v3
with:
name: test-screenshots
path: test-screenshots/
#- name: Send custom JSON data to Slack workflow
#if: ${{ always() }}
#id: slack
#uses: slackapi/[email protected]
#with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"status": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n${{ github.action.workflow_job.html_url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}\n${{ github.action.workflow_job.html_url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
#payload: |
#{
#"status": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
#"blocks": [
#{
#"type": "section",
#"text": {
#"type": "mrkdwn",
#"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
#}
#}
#]
#}
#env:
#SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}