Skip to content

Commit

Permalink
Merge pull request #133 from guardian/ld/add-setup-scala
Browse files Browse the repository at this point in the history
Use setup scala
  • Loading branch information
lindseydew authored Nov 5, 2024
2 parents 43b87af + 5cdb3c5 commit a6680d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci-mobile-save-for-later-user-deletion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ jobs:
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 21
distribution: corretto
cache: sbt
- name: Setup JDK and sbt
uses: guardian/setup-scala@v1

- name: Run Tests & Create Artifacts
run: sbt "project mobile-save-for-later-user-deletion" test assembly
Expand All @@ -32,4 +28,4 @@ jobs:
mobile-save-for-later-user-deletion-cfn:
- ./mobile-save-for-later-user-deletion/conf/cfn.yaml
mobile-save-for-later-user-deletion:
- mobile-save-for-later-user-deletion/target/scala-2.13/mobile-save-for-later-user-deletion.jar
- mobile-save-for-later-user-deletion/target/scala-2.13/mobile-save-for-later-user-deletion.jar
8 changes: 2 additions & 6 deletions .github/workflows/ci-mobile-save-for-later.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ jobs:
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: corretto
cache: sbt
- name: Setup JDK and sbt
uses: guardian/setup-scala@v1

- name: Run Tests and Create Artifacts
run: sbt "project mobile-save-for-later" test assembly
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java corretto-21

0 comments on commit a6680d2

Please sign in to comment.