Also scale read capacity and update snapshots #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
mobile-save-for-later-ci: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
aws-region: eu-west-1 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
distribution: temurin | |
cache: sbt | |
- name: Create artifacts | |
run: sbt "project mobile-save-for-later" assembly | |
- name: Build CDK | |
working-directory: ./cdk | |
run: | | |
yarn install | |
yarn lint | |
yarn test | |
yarn synth | |
- name: RiffRaff upload artifacts and upload cfn | |
uses: guardian/actions-riff-raff@v2 | |
with: | |
app: mobile-save-for-later | |
configPath: ./mobile-save-for-later/riff-raff.yaml | |
contentDirectories: | | |
mobile-save-for-later-cfn: | |
- cdk/cdk.out/MobileSaveForLater-CODE.template.json | |
- cdk/cdk.out/MobileSaveForLater-PROD.template.json | |
mobile-save-for-later: | |
- mobile-save-for-later/target/scala-2.12/mobile-save-for-later.jar |