Merge pull request #32 from Supercaly/gradle-update #52
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
# Github Action that runs tests on the project | |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- '**' | |
env: | |
JAVA_DIST: 'zulu' | |
JAVA_VERSION: 17 | |
jobs: | |
unit-test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ env.JAVA_DIST }} | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Check Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Run Unit Tests | |
run: ./gradlew test |