Skip to content

Commit 4ef25ca

Browse files
Merge branch 'main' into mob/inline-product-card
2 parents adb8d4e + b3ba16f commit 4ef25ca

File tree

116 files changed

+3963
-2262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+3963
-2262
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🦕 AB testing UI
2+
on:
3+
pull_request:
4+
paths:
5+
- 'ab-testing/**'
6+
7+
jobs:
8+
build-ui:
9+
name: AB testing UI build
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
defaults:
14+
run:
15+
working-directory: ab-testing/frontend
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
20+
- uses: denoland/setup-deno@v1
21+
with:
22+
deno-version: v2.3
23+
- name: Install
24+
run: deno install
25+
- name: Build
26+
run: deno run build
27+
- name: Save build
28+
uses: actions/[email protected]
29+
with:
30+
name: ui-build
31+
path: ${{ github.workspace }}/ab-testing/frontend/output/ab-tests.html
32+
if-no-files-found: error
33+
34+
riff-raff:
35+
name: AB testing Riffraff upload
36+
runs-on: ubuntu-latest
37+
permissions:
38+
id-token: write
39+
contents: read
40+
pull-requests: write
41+
42+
steps:
43+
- name: Checkout
44+
uses: actions/[email protected]
45+
with:
46+
fetch-depth: 0
47+
persist-credentials: false
48+
49+
- name: Set up Node
50+
uses: ./.github/actions/setup-node-env
51+
52+
- name: Fetch build
53+
uses: actions/[email protected]
54+
with:
55+
name: ui-build
56+
path: output/ab-tests.html
57+
58+
- name: Riff-Raff Upload
59+
uses: guardian/[email protected]
60+
with:
61+
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
62+
githubToken: ${{ secrets.GITHUB_TOKEN }}
63+
projectName: dotcom:rendering-all
64+
configPath: ab-testing/riff-raff.yaml
65+
contentDirectories: |
66+
frontend-store/commercial:
67+
- output/ab-tests.html

.github/workflows/ar-chromatic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
github.event.pull_request.user.login != 'dependabot')
2020
steps:
2121
- name: Checkout - On Pull Request
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
if: ${{ github.event_name == 'pull_request'}}
2424
with:
2525
fetch-depth: 0
@@ -28,7 +28,7 @@ jobs:
2828
# Hopefully by checking out the HEAD commit of a PR instead of the merge commit we can avoid some of those issues.
2929
ref: ${{ github.event.pull_request.head.sha }}
3030
- name: Checkout - On Push Event
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232
if: ${{ github.event_name == 'push'}}
3333
with:
3434
fetch-depth: 0

.github/workflows/ar-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
# Checkout the repository
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727

2828
- name: Set up Node environment
2929
uses: ./.github/actions/setup-node-env

.github/workflows/ar-nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- name: Set up Node environment
2424
uses: ./.github/actions/setup-node-env

.github/workflows/build-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Set up Node environment
1717
uses: ./.github/actions/setup-node-env

.github/workflows/bundle-analyser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414

1515
- name: Set up Node environment
1616
uses: ./.github/actions/setup-node-env

.github/workflows/container.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Commercial also use this container image for their E2E tests
2+
# Commercial rely on a container image built from the main branch with the tag 'main'
13
on:
24
workflow_call:
35
outputs:
@@ -17,10 +19,7 @@ jobs:
1719

1820
steps:
1921
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
22-
- name: Inject slug/short variables
23-
uses: rlespinasse/[email protected]
22+
uses: actions/checkout@v5
2423

2524
- name: Set up Node environment
2625
uses: ./.github/actions/setup-node-env
@@ -39,7 +38,8 @@ jobs:
3938
uses: redhat-actions/[email protected]
4039
with:
4140
image: dotcom-rendering
42-
tags: ${{ github.sha }} ${{ env.GITHUB_REF_SLUG }}
41+
# Commercial rely on a container image built from the main branch with the tag 'main'
42+
tags: ${{ github.sha }} ${{ github.ref == 'refs/heads/main' && 'main' || '' }}
4343
context: ./
4444
containerfiles: ./dotcom-rendering/Containerfile
4545

.github/workflows/dcr-chromatic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: contains(github.event.pull_request.labels.*.name, 'run_chromatic') || github.ref == 'refs/heads/main'
1616
steps:
1717
- name: Checkout - On Pull Request
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
if: ${{ github.event_name == 'pull_request'}}
2020
with:
2121
fetch-depth: 0
@@ -24,7 +24,7 @@ jobs:
2424
# Hopefully by checking out the HEAD commit of a PR instead of the merge commit we can avoid some of those issues.
2525
ref: ${{ github.event.pull_request.head.sha }}
2626
- name: Checkout - On Push Event
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
if: ${{ github.event_name == 'push'}}
2929
with:
3030
fetch-depth: 0

.github/workflows/deno.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: 🦕 Deno health
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313

1414
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
1515
- uses: denoland/setup-deno@v1

.github/workflows/jest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
jest:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
99

1010
- name: Set up Node environment
1111
uses: ./.github/actions/setup-node-env

0 commit comments

Comments
 (0)