-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.27 KB
/
ci-mobile-save-for-later.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on: push
jobs:
mobile-save-for-later-ci:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v2
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: 11
distribution: corretto
cache: sbt
- name: Run Tests and Create Artifacts
run: sbt "project mobile-save-for-later" test 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