Skip to content

Commit

Permalink
make compile test and assembly step project specific
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLawes committed Aug 23, 2023
1 parent 5c8d4a8 commit 7896179
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/event-consumer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- eventconsumer/**
- commoneventconsumer/**
- .github/workflows/event-consumer.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -38,7 +37,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fake-breaking-news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
paths:
- fakebreakingnewslambda/**
- common/**
- commoneventconsumer/**
- api-models/**
- .github/workflows/fake-breaking-news.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/football.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- football/**
- api-models/**
- .github/workflows/football.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -38,7 +37,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
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 @@ -7,8 +7,8 @@ on:
paths:
- notificationworkerlambda/**
- common/**
- commoneventconsumer/**
- .github/workflows/notification-worker-lambdas.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/report-extractor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
paths:
- reportextractor/**
- common/**
- commoneventconsumer/**
- .github/workflows/report-extractor.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/schedule-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- schedulelambda/**
- commonscheduledynamodb/**
- .github/workflows/schedule-lambda.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -38,7 +37,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/slo-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- slomonitor/**
- commoneventconsumer/**
- .github/workflows/slo-monitor.yml
# pull_request:
workflow_dispatch:

# allow queued workflows to interrupt previous runs
Expand Down Expand Up @@ -44,7 +43,7 @@ jobs:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}

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

- name: CDK synth
run: |
Expand Down

0 comments on commit 7896179

Please sign in to comment.