Skip to content

Commit

Permalink
test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyre-S committed Aug 8, 2024
1 parent 7e668bd commit 78e2c4b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/assembly-run.yml
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
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
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
9 changes: 9 additions & 0 deletions .github/workflows/on-push.yml
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
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
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

0 comments on commit 78e2c4b

Please sign in to comment.