Merge pull request #852 from zacharybonagura/master #516
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: Run JUnit Tests | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
branches: | |
- master | |
- dev | |
jobs: | |
ubuntu-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build -x test | |
- name: Run JUnit Tests on Linux | |
run: | | |
./gradlew test | |
test-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Check Out Code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build -x test | |
- name: Run JUnit Tests on macOS | |
run: | | |
./gradlew test | |
test-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Check Out Code | |
uses: actions/checkout@v2 | |
- name: Set up JDK and Gradle on Windows | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Run JUnit Tests on Windows | |
run: | | |
.\gradlew.bat test |