Run test suite with GitHub Actions #16
Workflow file for this run
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 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- 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 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- 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 --info | |
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: 11 | |
distribution: 'adopt' | |
- name: Run JUnit Tests on Windows | |
run: | | |
.\gradlew.bat test --info |