Minor code cleanup in AnnotateNovelSites #690
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: Github Actions CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Gradle Build/Test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: | | |
java -version; | |
./gradlew build; | |
./gradlew check; | |
./gradlew shadowJar -Drelease=${{startsWith(github.ref, 'refs/tags/v')}}; | |
./gradlew toolDoc -Drelease=${{startsWith(github.ref, 'refs/tags/v')}}; | |
ls build/libs | |
- name: Check JAR | |
run: | | |
java -version | |
java -jar build/libs/DISCVRSeq-unspecified-SNAPSHOT.jar -h |