@@ -4,21 +4,16 @@ permissions:
44 contents : read
55
66on :
7- pull_request :
8- paths :
9- - ' ab-testing/**'
10- - ' .github/workflows/ab-testing-*.yml'
117 push :
12- branches :
13- - main
148 paths :
159 - ' ab-testing/**'
16- - ' .github/workflows/ab-testing-*.yml'
10+ - ' .github/workflows/ab-testing-ci.yml'
11+ - ' !.github/workflows/ab-testing-deployment-lambda/**'
1712
1813jobs :
19- dictionaries -ci :
14+ config -ci :
2015 runs-on : ubuntu-latest
21- name : Dictionaries CI
16+ name : Config CI
2217 defaults :
2318 run :
2419 working-directory : ab-testing
5550 name : ab-testing-build
5651 path : ab-testing/dist
5752
58- lambda-ci :
59- name : Deploy Lambda CI
60- runs-on : ubuntu-latest
61- defaults :
62- run :
63- working-directory : ab-testing/dictionary-deploy-lambda
64- permissions :
65- contents : read
66- steps :
67- - uses : actions/checkout@v5
68-
69- - name : Set up Node environment
70- uses : ./.github/actions/setup-node-env
71-
72- - name : Build Lambda
73- run : pnpm build
74-
75- - name : Zip app artifact
76- run : |
77- cd dist
78- zip -r lambda.zip .
79- zip -j lambda.zip ../package.json
80-
81- - name : Save build
82- uses : actions/upload-artifact@v5
83- with :
84- name : ab-testing-lambda-build
85- path : ab-testing/dictionary-deploy-lambda/dist/lambda.zip
86-
8753 ui-ci :
8854 name : UI CI
8955 runs-on : ubuntu-latest
11076
11177 riff-raff :
11278 runs-on : ubuntu-latest
113- needs : [dictionaries-ci, ui-ci, lambda-ci ]
79+ needs : [dictionaries-ci, ui-ci]
11480 permissions :
11581 id-token : write
11682 contents : read
12995 - name : Set up Node
13096 uses : ./.github/actions/setup-node-env
13197
132- - name : Fetch build
98+ - name : Fetch config build
13399134100 with :
135101 name : ab-testing-build
@@ -141,12 +107,6 @@ jobs:
141107 name : ui-build
142108 path : ab-testing/frontend/output/ab-tests.html
143109
144- - name : Fetch Lambda build
145- 146- with :
147- name : ab-testing-lambda-build
148- path : ab-testing/dictionary-deploy-lambda/dist/lambda.zip
149-
150110 - name : CDK Test
151111 run : pnpm cdk:test
152112
@@ -159,13 +119,11 @@ jobs:
159119 roleArn : ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
160120 githubToken : ${{ secrets.GITHUB_TOKEN }}
161121 projectName : dotcom:ab-testing
162- configPath : ab-testing/cdk.out/riff-raff.yaml
122+ configPath : ab-testing/cdk.out/ab-testing-config/ riff-raff.yaml
163123 contentDirectories : |
164124 ab-testing-config-artifacts:
165125 - ab-testing/dist
166- ab-testing:
167- - ab-testing/dictionary-deploy-lambda/dist/lambda.zip
168126 ab-testing-ui-artifact:
169127 - ab-testing/frontend/output/ab-tests.html
170128 cdk.out:
171- - ab-testing/cdk.out
129+ - ab-testing/cdk.out/ab-testing-config
0 commit comments