From 39dc0b8201ac87cbb33b70bd236cacf518dd6874 Mon Sep 17 00:00:00 2001 From: Renato Athaydes Date: Fri, 26 Apr 2024 22:44:16 +0200 Subject: [PATCH] Smoke Test on GH Actions. --- .github/workflows/test.yml | 8 +++++++- jgrab-runner/build.gradle | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9bfc4e7..481c7af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: java-version: ${{ matrix.java }} - uses: eskatos/gradle-command-action@v1 with: - arguments: check + arguments: check fatJar - name: Publish Test Report if: ${{ always() }} uses: mikepenz/action-junit-report@v2 @@ -24,3 +24,9 @@ jobs: - name: Build Rust Client working-directory: ./jgrab-client run: cargo build + - name: Smoke Test + shell: bash + run: | + mkdir .jgrab + cp jgrab-runner/build/libs/jgrab.jar .jgrab/" + jgrab-client/target/debug/jgrab-client -e '2 + 2' diff --git a/jgrab-runner/build.gradle b/jgrab-runner/build.gradle index 1b08957..216df1f 100644 --- a/jgrab-runner/build.gradle +++ b/jgrab-runner/build.gradle @@ -26,8 +26,7 @@ tasks.register( 'fatJar', Jar ) { 'Implementation-Version': version, 'Main-Class': 'com.athaydes.jgrab.runner.JGrabRunner' } - baseName = project.name - classifier = 'fat-jar' + archiveFileName = 'jgrab.jar' from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree( it ) } } with jar }