Skip to content

Commit

Permalink
test actions x3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyre-S committed Aug 9, 2024
1 parent 6d96fd7 commit 484ee0f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/assembly-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on: [workflow_call]
jobs:
test_assembly:
runs-on: ubuntu-latest
env:
DOCKER_BUILD: 'true'
steps:
- name: "Setup cached built project"
uses: actions/cache/restore@v4
Expand All @@ -17,8 +19,6 @@ jobs:
distribution: 'temurin'
cache: sbt
- name: "Generate Assembly"
run: |
echo "DOCKER_BUILD=true" >> $GITHUB_ENV
sbt assembly
run: sbt assembly
- name: "Run Assembly"
run: java -jar ./morny-coeur/target/morny-coeur-docker-build.jar -q -v
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@ jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Java 21 with SBT"
- name: "Check if there's already have cache"
uses: actions/cache/restore@v4
with:
path: "./"
key: ${{ runner.os }}-build-${{ github.sha }}
lookup-only: 'true'
- if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
- if: steps.cache.outputs.cache-hit != 'true'
name: "Setup Java 21 with SBT"
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: sbt
- name: "Compile Project"
- if: steps.cache.outputs.cache-hit != 'true'
name: "Compile Project"
run: sbt compile
- name: "Cache the built project"
- if: steps.cache.outputs.cache-hit != 'true'
name: "Cache the built project"
uses: actions/cache/save@v4
with:
path: "./"
Expand Down

0 comments on commit 484ee0f

Please sign in to comment.