Skip to content

Commit

Permalink
[GitHub] Run JAR archive natively after build
Browse files Browse the repository at this point in the history
  • Loading branch information
pfolta committed Nov 5, 2023
1 parent 05441b4 commit 20cccd8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 20cccd8

Please sign in to comment.