-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a workflow to launch tests on push to master
- Loading branch information
1 parent
dddc39a
commit f4c2e5b
Showing
1 changed file
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
checks: write | ||
|
||
jobs: | ||
launch-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
- name: Checkout LFS files | ||
run: git lfs pull | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 17 | ||
cache: 'gradle' | ||
distribution: 'zulu' | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Run unit tests | ||
run: ./gradlew test | ||
- name: Test Report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() # run this step even if previous step failed | ||
with: | ||
name: tests-report # Name of the check run which will be created | ||
path: app/build/test-results/testProdReleaseUnitTest/TEST-*.xml # Path to test results | ||
reporter: java-junit # Format of test results |