Unit Test (Java) #79
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
name: Unit Test (Java) | |
on: | |
push: | |
paths: | |
- 'java/**' | |
pull_request: | |
branches: | |
- main | |
- develop | |
- 'release/**' | |
paths: | |
- 'java/**' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: java | |
strategy: | |
matrix: | |
java-version: | |
- 21 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Java ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
# @see https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions | |
distribution: 'corretto' | |
java-version: ${{ matrix.java-version }} | |
- name: Run Unit Test | |
run: ./gradlew test |