Skip to content

Commit 9a53e39

Browse files
committed
Merge branch 'main' into delete-ar-chromatic-workflow
2 parents 1cdf5b3 + 2bf21d0 commit 9a53e39

File tree

225 files changed

+9567
-5106
lines changed

Some content is hidden

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

225 files changed

+9567
-5106
lines changed

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

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,36 @@ jobs:
2323
name: Checks
2424
defaults:
2525
run:
26-
working-directory: ab-testing
26+
working-directory: ab-testing/config
2727
env:
2828
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_AB_TESTING_CONFIG }}
2929
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
3030
steps:
31-
- uses: actions/checkout@v5
31+
- uses: actions/checkout@v6
3232

33-
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
34-
- uses: denoland/setup-deno@v1
35-
with:
36-
deno-version: v2.3
33+
- name: Set up Node environment
34+
uses: ./.github/actions/setup-node-env
3735

3836
- name: Test
39-
run: deno test
37+
run: pnpm test
38+
39+
- name: Lint
40+
run: pnpm lint
41+
42+
- name: Prettier Check
43+
run: pnpm prettier:check
44+
45+
- name: Typecheck
46+
run: pnpm tsc
4047

4148
- name: Validate
42-
run: deno run scripts/validation/index.ts
49+
run: pnpm validate
4350

4451
- name: Build
45-
run: deno task build
52+
run: pnpm build
4653

4754
- if: ${{ inputs.save_build_artifact }}
48-
uses: actions/upload-artifact@v4.6.2
55+
uses: actions/upload-artifact@v5
4956
with:
5057
name: ab-testing-build
51-
path: ab-testing/dist
58+
path: ab-testing/config/dist

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,21 @@ jobs:
2222
runs-on: ubuntu-latest
2323
defaults:
2424
run:
25-
working-directory: ab-testing
25+
working-directory: ab-testing/config
2626
steps:
27-
- uses: actions/checkout@v5
27+
- uses: actions/checkout@v6
2828

29-
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
30-
- uses: denoland/setup-deno@v1
31-
with:
32-
deno-version: v2.3
29+
- name: Set up Node environment
30+
uses: ./.github/actions/setup-node-env
3331

3432
- name: Download build artifact
35-
uses: actions/download-artifact@v5.0.0
33+
uses: actions/download-artifact@v6.0.0
3634
with:
3735
name: ab-testing-build
38-
path: ab-testing/dist
36+
path: ab-testing/config/dist
3937

4038
- name: Deploy
41-
run: deno run deploy
39+
run: pnpm run deploy
4240
env:
4341
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_AB_TESTING_CONFIG }}
4442
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🦕 AB testing UI
1+
name: 🧪 AB testing UI
22
on:
33
pull_request:
44
paths:
@@ -15,24 +15,22 @@ jobs:
1515
build-ui:
1616
name: AB testing UI build
1717
runs-on: ubuntu-latest
18-
permissions:
19-
contents: read
2018
defaults:
2119
run:
2220
working-directory: ab-testing/frontend
21+
permissions:
22+
contents: read
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
25+
26+
- name: Set up Node environment
27+
uses: ./.github/actions/setup-node-env
28+
29+
- name: Build UI
30+
run: pnpm build
2531

26-
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
27-
- uses: denoland/setup-deno@v1
28-
with:
29-
deno-version: v2.3
30-
- name: Install
31-
run: deno install
32-
- name: Build
33-
run: deno run build
3432
- name: Save build
35-
uses: actions/upload-artifact@v4.6.2
33+
uses: actions/upload-artifact@v5
3634
with:
3735
name: ui-build
3836
path: ab-testing/frontend/output/ab-tests.html
@@ -41,14 +39,15 @@ jobs:
4139
riff-raff:
4240
name: AB testing Riffraff upload
4341
runs-on: ubuntu-latest
42+
needs: build-ui
4443
permissions:
4544
id-token: write
4645
contents: read
4746
pull-requests: write
4847

4948
steps:
5049
- name: Checkout
51-
uses: actions/checkout@v5
50+
uses: actions/checkout@v6
5251
with:
5352
fetch-depth: 0
5453
persist-credentials: false
@@ -57,7 +56,7 @@ jobs:
5756
uses: ./.github/actions/setup-node-env
5857

5958
- name: Fetch build
60-
uses: actions/download-artifact@v5.0.0
59+
uses: actions/download-artifact@v6.0.0
6160
with:
6261
name: ui-build
6362
path: output/ab-tests.html

.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@v5
26+
- uses: actions/checkout@v6
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@v5
21+
- uses: actions/checkout@v6
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@v5
14+
uses: actions/checkout@v6
1515

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

.github/workflows/bundle-analyser.yml

Lines changed: 4 additions & 4 deletions
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@v5
13+
uses: actions/checkout@v6
1414

1515
- name: Set up Node environment
1616
uses: ./.github/actions/setup-node-env
@@ -20,21 +20,21 @@ jobs:
2020
working-directory: dotcom-rendering
2121

2222
- name: Archive code coverage results for web bundle
23-
uses: actions/upload-artifact@v4
23+
uses: actions/upload-artifact@v5
2424
with:
2525
name: bundle-analyser-report-web-bundles
2626
path: dotcom-rendering/dist/stats/client.web-bundles.html
2727
if-no-files-found: error
2828

2929
- name: Archive code coverage results for web variant bundle
30-
uses: actions/upload-artifact@v4
30+
uses: actions/upload-artifact@v5
3131
with:
3232
name: bundle-analyser-report-web
3333
path: dotcom-rendering/dist/stats/client.web.variant-bundles.html
3434
if-no-files-found: warn # Variant bundle only exists when an active experiment is going on
3535

3636
- name: Archive code coverage results for apps bundle
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@v5
3838
with:
3939
name: bundle-analyser-report-apps
4040
path: dotcom-rendering/dist/stats/client.apps-bundles.html

.github/workflows/container.yml

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

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@v6
2323

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

.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@v5
18+
uses: actions/checkout@v6
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@v5
27+
uses: actions/checkout@v6
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@v5
12+
- uses: actions/checkout@v6
1313

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

0 commit comments

Comments
 (0)