Skip to content

Commit e5307d4

Browse files
committed
build cdk in riff-raff step
1 parent 0195509 commit e5307d4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/ab-testing-ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
id-token: write
110110
contents: read
111111
pull-requests: write
112+
defaults:
113+
run:
114+
working-directory: ab-testing
112115

113116
steps:
114117
- name: Checkout
@@ -129,25 +132,33 @@ jobs:
129132
uses: actions/[email protected]
130133
with:
131134
name: ui-build
132-
path: output/ab-tests.html
135+
path: ab-testing/frontend/output/ab-tests.html
133136

134137
- name: Fetch Lambda build
135138
uses: actions/[email protected]
136139
with:
137140
name: ab-testing-lambda-build
138141
path: ab-testing/deploy-dictionary-lambda/dist
139142

143+
- name: CDK Test
144+
run: pnpm cdk:test
145+
146+
- name: CDK synth
147+
run: pnpm cdk:synth
148+
140149
- name: Riff-Raff Upload
141150
uses: guardian/[email protected]
142151
with:
143152
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
144153
githubToken: ${{ secrets.GITHUB_TOKEN }}
145154
projectName: dotcom:ab-testing
146-
configPath: ab-testing/riff-raff.yaml
155+
configPath: ab-testing/cdk.out/riff-raff.yaml
147156
contentDirectories: |
148157
ab-testing:
149158
- ab-testing/dist
150159
ab-testing-deploy-dictionary-lambda:
151160
- ab-testing/deploy-dictionary-lambda/dist
152161
admin/ab-testing:
153-
- output/ab-tests.html
162+
- ab-testing/frontend/output/ab-tests.html
163+
cdk.out:
164+
- ab-testing/cdk.out

0 commit comments

Comments
 (0)