-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from smartSenseSolutions/test-service-offer
Test service offer
- Loading branch information
Showing
3 changed files
with
86 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Test application | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
|
||
permissions: | ||
id-token: write | ||
statuses: write | ||
checks: write | ||
# may also be read | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
test-app: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup .NET Core # Required to execute ReportGenerator | ||
uses: actions/setup-dotnet@v3 | ||
if: success() || failure() | ||
with: | ||
dotnet-version: 6.x | ||
dotnet-quality: 'ga' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Test app | ||
run: ./gradlew test | ||
|
||
# - name: Get coverage | ||
# if: success() || failure() | ||
# run: ./gradlew jacocoTestReport | ||
# | ||
# - name: Generate test report | ||
# uses: dorny/[email protected] | ||
# if: success() || failure() | ||
# with: | ||
# name: Test results | ||
# path: 'build/test-results/test/*.xml' | ||
# reporter: java-junit | ||
# fail-on-error: false | ||
# | ||
# - name: Generate code coverage report | ||
# uses: danielpalme/[email protected] | ||
# if: success() || failure() | ||
# with: | ||
# reports: build/reports/xml/jacoco | ||
# targetdir: coveragereport | ||
# reporttypes: MarkdownSummaryGithub | ||
# sourcedirs: src/main/java | ||
# title: 'Code Coverage' | ||
# | ||
# - name: Publish code coverage report as job summary | ||
# if: success() || failure() | ||
# run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
# | ||
# - name: Publish code coverage report as PR comment | ||
# uses: madrapps/[email protected] | ||
# if: github.event_name == 'pull_request' && (success() || failure()) | ||
# with: | ||
# paths: | | ||
# ${{ github.workspace }}/build/reports/xml/jacoco | ||
# min-coverage-overall: 80 | ||
# min-coverage-changed-files: 80 | ||
# title: Coverage Report |
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