Skip to content

Commit 6b89a7f

Browse files
committed
matrix action updates and code rabbit nits
1 parent bacbd41 commit 6b89a7f

7 files changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/test-matrix.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,19 @@ jobs:
1414
react: ["17.0.2", "18.2.0"] # TODO: Add "19.2.1" when ready
1515

1616
steps:
17+
- name: "Checkout"
18+
uses: actions/checkout@v4.1.6
19+
20+
- name: Use Node.js ${{ matrix.node}}
21+
uses: actions/setup-node@v4.0.2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
1725
- name: Install pnpm
1826
uses: pnpm/action-setup@v4.0.0
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
1930
- name: Pack library
2031
id: pack
2132
run: |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
buildConfiguration:
2-
buildCommand: npm run build
2+
buildCommand: pnpm run build
33
installDependenciesStep:
4-
command: npm install
4+
command: pnpm install
55
requiredFiles:
66
- package.json
7-
- package-lock.json
7+
- pnpm-lock.json
88
- .npmrc
99
livePreviewConfiguration:
1010
setupCommand: ":"

test-sites/pages-components-starter/localData/location-stream-aaa__en__0c50902dfc99e2dbf48b17fc9e98bee3.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
},
153153
"title": "My title"
154154
},
155+
"description": "Turtlehead Tacos in Chelsea, NYC serves fresh, made-to-order tacos with a variety of fillings and toppings in a vibrant atmosphere.",
155156
"hours": {
156157
"friday": {
157158
"openIntervals": [
@@ -248,4 +249,4 @@
248249
"siteInternalHostName": "",
249250
"slug": "location6-chelsea",
250251
"uid": 97807063
251-
}
252+
}

test-sites/pages-components-starter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"@vitejs/plugin-react": "^4.3.3",
2929
"@yext/pages": "^1.2.7",
3030
"typescript": "^5.3.3",
31-
"vite": "^5.4.10"
31+
"vite": "^5.4.19"
3232
}
33-
}
33+
}

test-sites/pages-components-starter/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default defineConfig({
1010
// Fail the build on CI if you accidentally left test.only in the source code.
1111
forbidOnly: !!process.env.CI,
1212

13-
// Retry on CI only.
1413
retries: 0,
1514

1615
// Opt out of parallel tests on CI.

test-sites/pages-components-starter/scripts/test-matrix-local.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ set -euo pipefail
44
export NVM_DIR="$HOME/.nvm"
55
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
66

7+
if ! command -v nvm >/dev/null 2>&1; then
8+
echo "❌ Error: nvm is not available. Please install nvm first."
9+
exit 1
10+
fi
11+
712
NODE_VERSIONS=("18" "20" "22" "24")
813
REACT_VERSIONS=("17.0.2" "18.2.0") # TODO: Add "19.2.1"
914

test-sites/pages-components-starter/src/templates/location.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const config: TemplateConfig = {
2424
"meta",
2525
"name",
2626
"address",
27+
"description",
2728
"slug",
2829
"hours",
2930
"photoGallery",
@@ -84,7 +85,7 @@ const Location: Template<TemplateRenderProps> = ({
8485
</div>
8586
<div>
8687
LRT via HTML:{" "}
87-
{c_subfieldRTFTest.rtf.html && (
88+
{c_subfieldRTFTest?.rtf?.html && (
8889
<div
8990
dangerouslySetInnerHTML={{ __html: c_subfieldRTFTest.rtf.html }}
9091
></div>

0 commit comments

Comments
 (0)