From 20cccd8cbf44a1e3b798636b9c9a9fd5df2ecf9c Mon Sep 17 00:00:00 2001 From: Peter Folta Date: Sun, 5 Nov 2023 18:41:44 +0000 Subject: [PATCH] [GitHub] Run JAR archive natively after build --- .github/workflows/build-and-test.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 9d89406..758414e 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -63,6 +63,27 @@ jobs: - name: "Publish coverage data to Codecov" uses: "codecov/codecov-action@v3.1.4" + run-jar-natively: + name: "Run JAR archive natively" + needs: "build-natively-with-gradle" + runs-on: "ubuntu-latest" + + steps: + - name: "Download 'AdventOfCode.jar' artifact" + uses: "actions/download-artifact@v3.0.2" + with: + name: "AdventOfCode.jar" + path: "." + + - name: "Set up JDK 8" + uses: "actions/setup-java@v3.13.0" + with: + java-version: "8" + distribution: "corretto" + + - name: "Run JAR archive" + run: "java -jar AdventOfCode.jar 2022" + build-docker-image: name: "Build Docker Image" runs-on: "ubuntu-latest"