-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from se-edu/full-template
Check CI of full-template branch
- Loading branch information
Showing
20 changed files
with
943 additions
and
79 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Java CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Set up repository | ||
uses: actions/checkout@master | ||
|
||
- name: Set up repository | ||
uses: actions/checkout@master | ||
with: | ||
ref: master | ||
|
||
- name: Merge to master | ||
run: git checkout --progress --force ${{ github.sha }} | ||
|
||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
java-package: jdk+fx | ||
|
||
- name: Build and check with Gradle | ||
run: ./gradlew check | ||
|
||
- name: Perform IO redirection test (*NIX) | ||
if: runner.os == 'Linux' | ||
working-directory: ${{ github.workspace }}/text-ui-test | ||
run: ./runtest.sh | ||
|
||
- name: Perform IO redirection test (MacOS) | ||
if: always() && runner.os == 'macOS' | ||
working-directory: ${{ github.workspace }}/text-ui-test | ||
run: ./runtest.sh | ||
|
||
- name: Perform IO redirection test (Windows) | ||
if: always() && runner.os == 'Windows' | ||
working-directory: ${{ github.workspace }}/text-ui-test | ||
shell: cmd | ||
run: runtest.bat |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
plugins { | ||
id 'java' | ||
id 'application' | ||
id 'checkstyle' | ||
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.0' | ||
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.0' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
|
||
testLogging { | ||
events "passed", "skipped", "failed" | ||
|
||
showExceptions true | ||
exceptionFormat "full" | ||
showCauses true | ||
showStackTraces true | ||
showStandardStreams = false | ||
} | ||
} | ||
|
||
application { | ||
mainClass.set("seedu.duke.Duke") | ||
} | ||
|
||
shadowJar { | ||
archiveBaseName = "duke" | ||
archiveClassifier = null | ||
dependsOn("distZip", "distTar") | ||
} | ||
|
||
checkstyle { | ||
toolVersion = '10.2' | ||
} | ||
|
||
run{ | ||
standardInput = System.in | ||
} |
Oops, something went wrong.