Skip to content

Commit

Permalink
Run tests in dependent projects as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
waisingyiu committed Apr 10, 2024
1 parent 2da2b79 commit 27d304e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/event-consumer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project eventconsumer" "compile" "test" "assembly"
run: sbt "project commoneventconsumer" "compile" "test" "project eventconsumer" "compile" "test" "assembly"

- name: Copy jar to root
run: cp eventconsumer/target/scala-*/eventconsumer.jar .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fake-breaking-news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project fakebreakingnewslambda" "compile" "test" "assembly"
run: sbt "project" "common" "compile" "test" "project apiModels" "compile" "test" "project fakebreakingnewslambda" "compile" "test" "assembly"

- name: Copy jar to root
run: cp fakebreakingnewslambda/target/scala-*/fakebreakingnewslambda.jar .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/football.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project football" "compile" "test" "assembly"
run: sbt "project apiModels" "compile" "test" "project football" "compile" "test" "assembly"

- name: Copy jar to root
run: cp football/target/scala-*/football.jar .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notification-worker-lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
mask-password: 'true'

- name: Compile and test
run: sbt "project notificationworkerlambda" "compile" "test"
run: sbt "project common" "compile" "test" "project notificationworkerlambda" "compile" "test"

- name: Build docker image
run: sbt docker:publishLocal
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and package
run: sbt "project notification" "compile" "test" "debian:packageBin"
run: sbt "project common" "compile" "test" "project commonscheduledynamodb" "compile" "test" "project notification" "compile" "test" "debian:packageBin"

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/registration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
npm run synth
- name: Compile, test and package
run: sbt "project registration" "compile" "test" "debian:packageBin"
run: sbt "project common" "compile" "test" "project registration" "compile" "test" "debian:packageBin"

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-extractor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project reportextractor" "compile" "test" "assembly"
run: sbt "project common" "compile" "test" "project reportextractor" "compile" "test" "assembly"

- name: Copy jar to root
run: cp reportextractor/target/scala-*/reportextractor.jar .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and package
run: sbt "project report" "compile" "test" "debian:packageBin"
run: sbt "project common" "compile" "test" "project report" "compile" "test" "debian:packageBin"

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schedule-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project schedule" "compile" "test" "assembly"
run: sbt "project commonscheduledynamodb" "compile" "test" "project schedule" "compile" "test" "assembly"

- name: Copy jar to root
run: cp schedulelambda/target/scala-*/schedule.jar .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slo-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

- name: Compile, test and assembly
run: sbt "project slomonitor" "compile" "test" "assembly"
run: sbt "project commoneventconsumer" "compile" "test" "project slomonitor" "compile" "test" "assembly"

- name: Copy jar to root
run: cp slomonitor/target/scala-*/slomonitor.jar .
Expand Down

0 comments on commit 27d304e

Please sign in to comment.