-
Notifications
You must be signed in to change notification settings - Fork 5
102 lines (91 loc) · 3.91 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on: [push]
jobs:
CI:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
cache: sbt
- name: Test and Build TypeScript
run: ./build-tc.sh
- name: Test and Build Scala
run: sbt test assembly
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Generate CFN templates using GuCDK
run: bash ./script/cdk-synth.sh
- name: Upload to Riff-Raff
uses: guardian/actions-riff-raff@v2
with:
projectName: Mobile::mobile-purchases
buildNumberOffset: 2740
configPath: riff-raff.yaml
contentDirectories: |
mobile-purchases-feast-cloudformation:
- cdk/cdk.out/MobilePurchasesFeast-CODE.template.json
- cdk/cdk.out/MobilePurchasesFeast-PROD.template.json
mobile-purchases-cloudformation:
- cloudformation.yaml
mobile-purchases-dynamo-cloudformation:
- dynamo.cloudformation.yaml
mobile-purchases-exports-cloudformation:
- exports-cloudformation.yaml
mobile-purchases-google-oauth:
- scala/google-oauth/target/scala-2.12/mobile-purchases-google-oauth.jar
mobile-purchases-apple-fetch-offer-details:
- tsc-target/apple-fetch-offer-details.zip
mobile-purchases-apple-link-user-subscription:
- tsc-target/apple-link-user-subscription.zip
mobile-purchases-apple-pubsub:
- tsc-target/apple-pubsub.zip
mobile-purchases-apple-revalidate-receipts:
- tsc-target/apple-revalidate-receipts.zip
mobile-purchases-apple-subscription-status:
- tsc-target/apple-subscription-status.zip
mobile-purchases-apple-update-subscriptions:
- tsc-target/apple-update-subscriptions.zip
mobile-purchases-delete-user-subscription:
- tsc-target/delete-user-subscription.zip
mobile-purchases-export-historical-data:
- tsc-target/export-historical-data.zip
mobile-purchases-export-subscription-events-table:
- tsc-target/export-subscription-events-table.zip
mobile-purchases-export-subscription-table-v2:
- tsc-target/export-subscription-table-v2.zip
mobile-purchases-export-subscription-tables:
- tsc-target/export-subscription-tables.zip
mobile-purchases-google-link-user-subscription:
- tsc-target/google-link-user-subscription.zip
mobile-purchases-google-pubsub:
- tsc-target/google-pubsub.zip
mobile-purchases-google-subscription-status:
- tsc-target/google-subscription-status.zip
mobile-purchases-google-update-subscriptions:
- tsc-target/google-update-subscriptions.zip
mobile-purchases-soft-opt-in-acquisitions-dlq-processor:
- tsc-target/soft-opt-in-acquisitions-dlq-processor.zip
mobile-purchases-soft-opt-in-acquisitions:
- tsc-target/soft-opt-in-acquisitions.zip
mobile-purchases-user-subscriptions:
- tsc-target/user-subscriptions.zip
mobile-purchases-feast-apple-pubsub:
- tsc-target/feast-apple-pubsub.zip
mobile-purchases-feast-apple-update-subscriptions:
- tsc-target/feast-apple-update-subscriptions.zip