Skip to content

Commit 41fc3e7

Browse files
committed
Merge master into vlk/fix-algolia
Resolve the package.json and yarn.lock conflicts by keeping master's formatting and test updates while preserving the Algolia env split, disabled-search fallback, and search-index build wiring.
2 parents 6480ca3 + f3ea0c6 commit 41fc3e7

212 files changed

Lines changed: 11368 additions & 4308 deletions

File tree

Some content is hidden

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

.github/workflows/clear-ok-to-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pull-requests: write
1111
steps:
1212
- name: Remove ok-to-deploy label
13-
uses: actions/github-script@v7
13+
uses: actions/github-script@v9.0.0
1414
with:
1515
script: |
1616
const pr = context.payload.pull_request;

.github/workflows/deploy-fork-preview.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# pull-requests: write, so we can't post PR comments here.
2222
- name: Fetch PR info
2323
id: pr
24-
uses: actions/github-script@v7
24+
uses: actions/github-script@v9.0.0
2525
with:
2626
script: |
2727
const inputRaw = core.getInput("pr_number") || (context.payload.inputs && context.payload.inputs.pr_number) || "";
@@ -49,18 +49,20 @@ jobs:
4949
core.setOutput("is_fork", pr.head.repo.fork ? "true" : "false");
5050
5151
- name: Checkout PR head
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6.0.2
5353
with:
5454
repository: ${{ steps.pr.outputs.repo }}
5555
ref: ${{ steps.pr.outputs.sha }}
5656
persist-credentials: false
5757

58-
- name: Setup yarn
59-
uses: actions/setup-node@v4
58+
- name: Setup Node.js environment
59+
uses: actions/setup-node@v6.3.0
6060
with:
6161
node-version-file: ".node-version"
6262
cache: "yarn"
6363

64+
- name: Enable Corepack
65+
run: corepack enable
6466
- name: Install dependencies
6567
run: yarn install
6668

.github/workflows/deploy.yml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ jobs:
2020
contents: read
2121
deployments: write
2222
pull-requests: write
23+
outputs:
24+
deployment-url: ${{ steps.deploy.outputs.deployment-url }}
2325
steps:
24-
- uses: actions/checkout@v4
25-
- name: Setup yarn
26-
uses: actions/setup-node@v3
26+
- uses: actions/checkout@v6.0.2
27+
- name: Setup Node.js environment
28+
uses: actions/setup-node@v6.3.0
2729
with:
30+
node-version-file: ".node-version"
2831
cache: "yarn"
29-
node-version: "24"
32+
- name: Enable Corepack
33+
run: corepack enable
3034
- name: Install dependencies
3135
run: yarn install
3236
- name: Sync playground bundles
@@ -40,9 +44,9 @@ jobs:
4044
echo "VITE_DEPLOYMENT_URL=" >> "$GITHUB_ENV"
4145
else
4246
SAFE_BRANCH="${RAW_BRANCH//\//-}"
43-
47+
4448
SAFE_BRANCH=$(echo "$SAFE_BRANCH" | tr '[:upper:]' '[:lower:]')
45-
49+
4650
echo "SAFE_BRANCH=$SAFE_BRANCH" >> "$GITHUB_ENV"
4751
echo "VITE_DEPLOYMENT_URL=https://${SAFE_BRANCH}.rescript-lang.pages.dev" >> "$GITHUB_ENV"
4852
fi
@@ -83,6 +87,7 @@ jobs:
8387
env:
8488
VITE_DEPLOYMENT_URL: ${{ env.VITE_DEPLOYMENT_URL }}
8589
- name: Deploy
90+
if: ${{ github.actor != 'dependabot[bot]' }}
8691
id: deploy
8792
uses: cloudflare/wrangler-action@v3
8893
with:
@@ -94,6 +99,7 @@ jobs:
9499
env:
95100
FORCE_COLOR: 0
96101
- name: Comment PR with deployment link
102+
if: ${{ github.actor != 'dependabot[bot]' }}
97103
uses: marocchino/sticky-pull-request-comment@v2
98104
with:
99105
recreate: true
@@ -104,3 +110,28 @@ jobs:
104110
Deployment Environment: ${{ steps.deploy.outputs.pages-environment }}
105111
106112
${{ steps.deploy.outputs.command-output }}
113+
114+
e2e:
115+
runs-on: ubuntu-latest
116+
name: E2E Tests
117+
needs: deploy
118+
if: ${{ github.actor != 'dependabot[bot]' }}
119+
steps:
120+
- uses: actions/checkout@v6.0.2
121+
- name: Setup Node.js environment
122+
uses: actions/setup-node@v6.3.0
123+
with:
124+
node-version-file: ".node-version"
125+
cache: "yarn"
126+
- name: Enable Corepack
127+
run: corepack enable
128+
- name: Install dependencies
129+
run: yarn install
130+
- name: Build ReScript
131+
run: yarn build:res
132+
- name: Cypress E2E tests
133+
uses: cypress-io/github-action@v7
134+
with:
135+
install: false
136+
browser: chrome
137+
config: baseUrl=${{ needs.deploy.outputs.deployment-url }}

.github/workflows/pull-request.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v4
9-
- name: Setup node
10-
uses: actions/setup-node@v4
8+
uses: actions/checkout@v6.0.2
9+
- name: Setup Node.js environment
10+
uses: actions/setup-node@v6.3.0
1111
with:
1212
node-version-file: ".node-version"
1313
cache: yarn
14+
- name: Enable Corepack
15+
run: corepack enable
1416
- name: Install dependencies
1517
run: yarn
1618
- name: Format check
@@ -19,31 +21,36 @@ jobs:
1921
runs-on: ubuntu-latest
2022
steps:
2123
- name: Checkout
22-
uses: actions/checkout@v4
23-
- name: Setup node
24-
uses: actions/setup-node@v4
24+
uses: actions/checkout@v6.0.2
25+
- name: Setup Node.js environment
26+
uses: actions/setup-node@v6.3.0
2527
with:
2628
node-version-file: ".node-version"
2729
cache: yarn
30+
- name: Enable Corepack
31+
run: corepack enable
2832
- name: Install dependencies
2933
run: yarn
3034
- name: Test examples and hrefs
3135
run: yarn test
3236
Vitest:
3337
runs-on: ubuntu-latest
38+
container:
39+
# Keep this image tag aligned with package.json's playwright version.
40+
image: mcr.microsoft.com/playwright:v1.59.1-noble
3441
steps:
3542
- name: Checkout
36-
uses: actions/checkout@v4
37-
- name: Setup node
38-
uses: actions/setup-node@v4
43+
uses: actions/checkout@v6.0.2
44+
- name: Setup Node.js environment
45+
uses: actions/setup-node@v6.3.0
3946
with:
4047
node-version-file: ".node-version"
4148
cache: yarn
49+
- name: Enable Corepack
50+
run: corepack enable
4251
- name: Install dependencies
4352
run: yarn
4453
- name: Build ReScript
4554
run: yarn build:res
46-
- name: Install Playwright
47-
run: yarn playwright install --with-deps
4855
- name: Vitest
4956
run: yarn ci:test

.gitignore

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
*.swp
33
*.swo
4+
.worktrees/
45

56
# Generated via update-index script
67
public/blog/feed.xml
@@ -11,11 +12,9 @@ out/
1112
index_data/*.json
1213

1314
# Generated via test examples script
14-
_tempFile.cmi
15-
_tempFile.cmj
16-
_tempFile.cmt
17-
_tempFile.res
1815
temp
16+
temp-js-output
17+
temp-jsx-preserve
1918

2019
.bsb.lock
2120
.merlin
@@ -42,6 +41,7 @@ public/playground-bundles/
4241
dist
4342
build
4443
.react-router
44+
.worktrees/
4545
mdx-manifest.json
4646

4747
app/**/*.mjs
@@ -50,6 +50,8 @@ functions/**/*.mjs
5050
functions/**/*.jsx
5151
__tests__/**/*.mjs
5252
__tests__/**/*.jsx
53+
e2e/**/*.mjs
54+
e2e/**/*.jsx
5355
!_shims.mjs
5456
!_shims.jsx
5557

@@ -70,6 +72,9 @@ _scripts
7072
# Local env files
7173
.env.local
7274

75+
# Local git worktrees
76+
.worktrees
77+
7378
# Vitest screenshots
7479
!__tests__/__screenshots__/**/*
75-
.vitest-attachments
80+
.vitest-attachments

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.16.0
1+
24.15.0

.oxfmtrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"sortPackageJson": false,
5+
"ignorePatterns": [
6+
"!_shims.mjs",
7+
"!public/_redirects",
8+
".DS_Store",
9+
".worktrees/",
10+
".next/",
11+
".react-router",
12+
"*.swo",
13+
"*.swp",
14+
"app/**/*.mjs",
15+
"build",
16+
"data/api/**/*.json",
17+
"dist",
18+
"index_data/*.json",
19+
"node_modules/",
20+
"out/",
21+
"public/playground-bundles/",
22+
"public/blog/feed.xml",
23+
"_tempFile.cmi",
24+
"_tempFile.cmj",
25+
"_tempFile.cmt",
26+
"_tempFile.res",
27+
"temp",
28+
".bsb.lock",
29+
".merlin",
30+
"lib/",
31+
".vercel",
32+
"src/**/*.mjs",
33+
"scripts/gendocs.mjs",
34+
"scripts/generate_*.mjs",
35+
"public/llms/manual/**/llm*.txt",
36+
"public/llms/react/**/llm*.txt",
37+
"pages/docs/**/**/llms.mdx",
38+
"markdown-pages/docs/manual/installation.mdx",
39+
".yarn/releases/yarn-4.12.0.cjs",
40+
"data/api/*"
41+
]
42+
}

.prettierignore

Lines changed: 0 additions & 47 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.yarn/patches/react-router-mdx-npm-1.0.8-d4402c3003.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)