-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 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,13 @@ | ||
name: assembly-run.yml | ||
on: [workflow_call] | ||
jobs: | ||
run_assmebly: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/workflows/build.yml | ||
- name: "Generate Assembly" | ||
run: | | ||
echo "DOCKER_BUILD=true" >> $GITHUB_ENV | ||
sbt assembly | ||
- name: "Run Assembly" | ||
run: java -jar ./morny-coeur/target/morny-coeur-docker-build.jar -q -v |
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,16 @@ | ||
name: "Build" | ||
run-name: "Build projects to ensure compiling is successful" | ||
on: [workflow_call] | ||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Setup Java 21 with SBT" | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: sbt | ||
- name: "Compile Project" | ||
run: sbt compile |
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,9 @@ | ||
name: On push Checks | ||
on: [push] | ||
jobs: | ||
check_build: | ||
uses: ./.github/workflows/build.yml | ||
check_unit_tests: | ||
uses: ./.github/workflows/test.yml | ||
check_assembly_run: | ||
uses: ./.github/workflows/assembly-run.yml |
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,10 @@ | ||
name: "Test" | ||
run-name: "Test projects to ensure they are working" | ||
on: [workflow_call] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/workflows/build.yml | ||
- name: "Test Project" | ||
run: sbt test |