Update README.md for latest version 2024.5 #13
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
# Runs all unit tests in the project | |
name: "Run Unit Tests" | |
on: | |
# Automatically run on pushes directly to main. | |
push: | |
branches: [ main ] | |
# Automatically run on PRs off of main. | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '21' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run all unit tests | |
run: ./gradlew test |