Skip to content

Commit 9fb8763

Browse files
Merge branch 'main' into al-use-get-consent-for
2 parents 77daabe + 5460146 commit 9fb8763

File tree

198 files changed

+41206
-33693
lines changed

Some content is hidden

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

198 files changed

+41206
-33693
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Setup Node and Install Dependencies
2+
description: Sets up Node, enables corepack, and installs dependencies with pnpm
3+
runs:
4+
using: "composite"
5+
steps:
6+
- run: npm install --global [email protected]
7+
shell: bash
8+
9+
- run: corepack enable
10+
shell: bash
11+
12+
- name: Setup Node
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".nvmrc"
16+
17+
- name: Install
18+
run: pnpm install
19+
shell: bash

.github/workflows/bundle-analyser.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,8 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19-
- run: npm install --global [email protected]
20-
21-
- run: corepack enable
22-
shell: bash
23-
working-directory: support-frontend
24-
25-
- name: Install Node
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version-file: '.nvmrc'
29-
# Cache npm dependencies using https://github.com/bahmutov/npm-install
30-
# - name: Cache dependencies
31-
# uses: bahmutov/npm-install@v1
32-
# with:
33-
# working-directory: support-frontend
34-
35-
- name: Install
36-
run: pnpm install
19+
- name: Setup Node and Install Dependencies
20+
uses: ./.github/actions/setup-node-and-install
3721

3822
- name: Generate production build for github action
3923
run: pnpm build-github-action

.github/workflows/chromatic.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,9 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- run: npm install --global [email protected]
16+
- name: Setup Node and Install Dependencies
17+
uses: ./.github/actions/setup-node-and-install
1718

18-
- run: corepack enable
19-
shell: bash
20-
21-
- name: Install Node
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version-file: ".nvmrc"
25-
26-
# Cache npm dependencies using https://github.com/bahmutov/npm-install
27-
# - name: Cache dependencies
28-
# uses: bahmutov/npm-install@v1
29-
# with:
30-
# working-directory: support-frontend
31-
32-
- name: Install
33-
run: pnpm install
3419
- uses: chromaui/[email protected]
3520
with:
3621
workingDir: support-frontend

.github/workflows/compressed-size.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,27 @@ jobs:
99
compressed_size:
1010
if: ${{ github.actor != 'gu-scala-steward-public-repos[bot]' }}
1111
name: Compressed Size
12-
defaults:
13-
run:
14-
working-directory: support-frontend
1512
runs-on: ubuntu-latest
1613
steps:
1714
- name: Checkout code
1815
uses: actions/checkout@v4
1916

2017
- run: npm install --global [email protected]
18+
shell: bash
2119

2220
- run: corepack enable
2321
shell: bash
2422

25-
- name: Install Node
23+
- name: Setup Node
2624
uses: actions/setup-node@v4
2725
with:
2826
node-version-file: ".nvmrc"
2927

30-
# Cache npm dependencies using https://github.com/bahmutov/npm-install
31-
# - name: Cache dependencies
32-
# uses: bahmutov/npm-install@v1
33-
# with:
34-
# working-directory: support-frontend
35-
36-
- name: Print package.json
37-
run: cat /home/runner/work/support-frontend/support-frontend/support-frontend/package.json
38-
3928
- name: Check compressed size of JS
4029
uses: preactjs/compressed-size-action@v2
4130
with:
31+
install-script: "pnpm install"
32+
build-script: "--filter support-frontend build-github-action"
4233
repo-token: "${{ secrets.GITHUB_TOKEN }}"
43-
cwd: "./support-frontend"
44-
pattern: "./public/compiled-assets/{javascripts,webpack}/**/*.js"
45-
build-script: "build-github-action"
34+
pattern: "./support-frontend/public/compiled-assets/{javascripts,webpack}/**/*.js"
4635
minimum-change-threshold: 500

.github/workflows/dependabot.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,15 @@ jobs:
2424
- name: Checkout repo
2525
uses: actions/checkout@v4
2626

27-
- run: npm install --global [email protected]
28-
29-
- run: corepack enable
30-
shell: bash
31-
working-directory: support-frontend
32-
33-
- name: Setup Node
34-
uses: actions/setup-node@v4
35-
with:
36-
node-version-file: '.nvmrc'
37-
38-
- name: Install - support-frontend
39-
run: pnpm install
40-
working-directory: support-frontend
27+
- name: Setup Node and Install Dependencies
28+
uses: ./.github/actions/setup-node-and-install
4129

4230
- name: Test - support-frontend
43-
run: pnpm test
44-
working-directory: support-frontend
31+
run: pnpm --filter support-frontend test
4532

4633
- name: Install & test - CDK
4734
run: ./script/ci
4835
working-directory: cdk
4936

50-
- name: Install - bigquery-acquisitions-publisher
51-
run: yarn install
52-
working-directory: support-lambdas/bigquery-acquisitions-publisher
53-
5437
- name: Test - bigquery-acquisitions-publisher
55-
run: yarn test
56-
working-directory: support-lambdas/bigquery-acquisitions-publisher
38+
run: pnpm --filter bigquery-acquisitions-publisher test

.github/workflows/knip.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,8 @@ jobs:
1111
- name: Checkout repo
1212
uses: actions/checkout@v4
1313

14-
- run: npm install --global [email protected]
15-
16-
- run: corepack enable
17-
shell: bash
18-
working-directory: support-frontend
19-
20-
- name: Setup Node
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version-file: '.nvmrc'
24-
# cache: 'yarn'
25-
# cache-dependency-path: support-frontend/yarn.lock
26-
27-
- name: Install
28-
run: pnpm install
29-
working-directory: support-frontend
14+
- name: Setup Node and Install Dependencies
15+
uses: ./.github/actions/setup-node-and-install
3016

3117
- name: Knip check
32-
run: pnpm knip
33-
working-directory: support-frontend
18+
run: pnpm --filter support-frontend knip

.github/workflows/payment-api-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ jobs:
3030
- name: Checkout repo
3131
uses: actions/checkout@v4
3232

33-
- name: Setup Node for CDK
34-
uses: actions/setup-node@v4
35-
with:
36-
node-version: 18
37-
cache: "yarn"
38-
cache-dependency-path: cdk/yarn.lock
33+
- name: Setup Node and Install Dependencies
34+
uses: ./.github/actions/setup-node-and-install
3935

4036
- name: Build CFN from CDK
4137
run: ./script/ci

.github/workflows/playwright-cron.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ jobs:
1313
GOOGLE_CHAT_WEB_HOOK: ${{ secrets.GOOGLE_CHAT_WEB_HOOK }}
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
17-
with:
18-
node-version: 20.11.0
19-
- name: Install dependencies
20-
working-directory: ./support-e2e
21-
run: yarn install
16+
17+
- name: Setup Node and Install Dependencies
18+
uses: ./.github/actions/setup-node-and-install
19+
2220
- name: Install Playwright Browsers
23-
working-directory: ./support-e2e
24-
run: yarn playwright install --with-deps
21+
run: pnpm --filter support-e2e exec playwright install --with-deps
22+
2523
- name: Run Playwright tests
26-
working-directory: ./support-e2e
27-
run: yarn test-cron
24+
run: pnpm --filter support-e2e test-cron
25+
2826
- uses: actions/upload-artifact@v4
2927
if: ${{ !cancelled() }}
3028
with:

.github/workflows/playwright-smoke.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ jobs:
1515
GOOGLE_CHAT_WEB_HOOK: ${{ secrets.GOOGLE_CHAT_WEB_HOOK }}
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
19-
with:
20-
node-version: 20.11.0
21-
- name: Install dependencies
22-
working-directory: ./support-e2e
23-
run: yarn install
18+
19+
- name: Setup Node and Install Dependencies
20+
uses: ./.github/actions/setup-node-and-install
21+
2422
- name: Install Playwright Browsers
25-
working-directory: ./support-e2e
26-
run: yarn playwright install --with-deps
23+
run: pnpm --filter support-e2e exec playwright install --with-deps
24+
2725
- name: Run Playwright tests
28-
working-directory: ./support-e2e
29-
run: yarn test-smoke
26+
run: pnpm --filter support-e2e test-smoke
27+
3028
- uses: actions/upload-artifact@v4
3129
if: ${{ !cancelled() }}
3230
with:

.github/workflows/stripe-patrons-data.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ jobs:
2626
- name: Checkout repo
2727
uses: actions/checkout@v4
2828

29-
- name: Setup Node for CDK
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: 18
33-
cache: "yarn"
34-
cache-dependency-path: cdk/yarn.lock
29+
- name: Setup Node and Install Dependencies
30+
uses: ./.github/actions/setup-node-and-install
3531

3632
- name: Build CFN from CDK
3733
run: ./script/ci

.github/workflows/support-frontend-build.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,14 @@ jobs:
3030
- name: Checkout repo
3131
uses: actions/checkout@v4
3232

33-
- run: npm install --global [email protected]
34-
35-
- run: corepack enable
36-
shell: bash
37-
working-directory: support-frontend
38-
39-
# (Respects .nvmrc)
40-
- name: Setup Node
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version-file: ".nvmrc"
44-
# cache: "pnpm"
45-
# cache-dependency-path: |
46-
# support-frontend/pnpm-lock.yaml
47-
48-
- name: Install
49-
run: pnpm install
50-
working-directory: support-frontend
33+
- name: Setup Node and Install Dependencies
34+
uses: ./.github/actions/setup-node-and-install
5135

5236
- name: Build the html used for SSR pages
53-
run: pnpm build-ssr
54-
working-directory: support-frontend
37+
run: pnpm --filter support-frontend build-ssr
5538

5639
- name: Build assets
57-
run: pnpm build-prod
58-
working-directory: support-frontend
40+
run: pnpm --filter support-frontend build-prod
5941

6042
- name: Build CFN from CDK
6143
run: ./script/ci

.github/workflows/support-frontend-eslint.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,8 @@ jobs:
1313
- name: Checkout repo
1414
uses: actions/checkout@v4
1515

16-
- run: npm install --global [email protected]
17-
18-
- run: corepack enable
19-
shell: bash
20-
21-
- name: Setup Node
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version-file: '.nvmrc'
25-
# cache: 'pnpm'
26-
# cache-dependency-path: support-frontend/pnpm-lock.yaml
27-
28-
- name: Install
29-
run: pnpm install
30-
working-directory: support-frontend
16+
- name: Setup Node and Install Dependencies
17+
uses: ./.github/actions/setup-node-and-install
3118

3219
- name: Lint check
3320
run: pnpm lint:check

.github/workflows/support-frontend-prettier.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,8 @@ jobs:
1313
- name: Checkout repo
1414
uses: actions/checkout@v4
1515

16-
- run: npm install --global [email protected]
17-
18-
- run: corepack enable
19-
shell: bash
20-
21-
- name: Setup Node
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version-file: '.nvmrc'
25-
# cache: 'pnpm'
26-
# cache-dependency-path: support-frontend/pnpm-lock.yaml
27-
28-
- name: Install
29-
run: pnpm install
30-
working-directory: support-frontend
16+
- name: Setup Node and Install Dependencies
17+
uses: ./.github/actions/setup-node-and-install
3118

3219
- name: Prettier check
33-
run: pnpm prettier:check
34-
working-directory: support-frontend
20+
run: pnpm --filter support-frontend prettier:check

.github/workflows/support-frontend-typescript.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,8 @@ jobs:
1313
- name: Checkout repo
1414
uses: actions/checkout@v4
1515

16-
- run: npm install --global [email protected]
17-
18-
- run: corepack enable
19-
shell: bash
20-
21-
- name: Setup Node
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version-file: '.nvmrc'
25-
# cache: 'pnpm'
26-
# cache-dependency-path: support-frontend/pnpm-lock.yaml
27-
28-
- name: Install
29-
run: pnpm install
30-
working-directory: support-frontend
16+
- name: Setup Node and Install Dependencies
17+
uses: ./.github/actions/setup-node-and-install
3118

3219
- name: Type check
33-
run: pnpm tsc
34-
working-directory: support-frontend
20+
run: pnpm --filter support-frontend typecheck

0 commit comments

Comments
 (0)