Skip to content

Update to 2024.2 to publish on Jitpack #7

Update to 2024.2 to publish on Jitpack

Update to 2024.2 to publish on Jitpack #7

# Runs all unit tests in the project
name: "Run Unit Tests"
on:
# Automatically run on pushes directly to main.
push:
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