-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualiza o template de acordo com as aplicações
- Loading branch information
1 parent
42cfc39
commit 882f15a
Showing
25 changed files
with
476 additions
and
215 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,29 @@ | ||
name: Main | ||
|
||
on: | ||
workflow_run: | ||
workflows: [CI] | ||
branches: [main] | ||
types: | ||
- completed | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
on-ci-workflow-failure: | ||
name: CI / Failure | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# `false` makes this step fail, which is what we want | ||
# since no code coverage will be reported. | ||
- run: | | ||
echo 'The triggering workflow failed' && false | ||
permissions: | ||
contents: write | ||
|
||
on-ci-workflow-success: | ||
name: CI / Success | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Triggering Workflow Summary | ||
run: | | ||
echo "## CI Build Summary" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "Summary for the workflow that triggered this deploy." >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY | ||
echo "|:------|:------|" >> $GITHUB_STEP_SUMMARY | ||
echo "| Id | ${{ github.event.workflow_run.id }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "| Title | ${{ github.event.workflow_run.display_title }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "| URL | <${{ github.event.workflow_run.html_url }}> |" >> $GITHUB_STEP_SUMMARY | ||
echo "| Started at | ${{ github.event.workflow_run.created_at }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "| Finished at | ${{ github.event.workflow_run.updated_at }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "| Who | [${{ github.event.workflow_run.actor.login }}](${{ github.event.workflow_run.actor.html_url}}) |" >> $GITHUB_STEP_SUMMARY | ||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.console=plain" | ||
|
||
code-coverage: | ||
name: Test / code coverage | ||
jobs: | ||
gh-dependency-graph: | ||
name: Generate and Submit Dependency Graph | ||
runs-on: ubuntu-latest | ||
needs: | ||
- on-ci-workflow-success | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Liber-UFPE/spring-gradle-build-action@v1 | ||
- name: Run tests | ||
run: ./gradlew test | ||
- name: Coverage XML Report | ||
run: ./gradlew koverXmlReport | ||
- name: Report results to DeepSource | ||
run: | | ||
curl https://deepsource.io/cli | sh | ||
./bin/deepsource report --analyzer test-coverage --key kotlin --value-file build/reports/kover/report.xml | ||
env: | ||
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
dependency-graph: generate-and-submit | ||
- name: Generate Dependency Graph | ||
run: ./gradlew compileTestKotlin |
Oops, something went wrong.