Skip to content

Commit c76beb6

Browse files
committed
fix(npm) :: install dependencies only once at root level
1 parent e15b16d commit c76beb6

6 files changed

Lines changed: 106 additions & 101 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,11 @@ jobs:
201201
with:
202202
node-version: 24
203203
cache: 'npm'
204-
cache-dependency-path: ./tests/end-to-end/package-lock.json
204+
cache-dependency-path: ./package-lock.json
205205
- run: sudo apt-get update && sudo apt-get install -y unixodbc-dev
206-
- run: npm ci && npx playwright install --with-deps --only-shell chromium
206+
- run: npm ci
207+
working-directory: .
208+
- run: npx playwright install --with-deps --only-shell chromium
207209
# The browser tests exercise the official site, but they do not need a
208210
# separate Rust build. Reuse the binary compiled and tested above.
209211
- name: Download Linux binary

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ xbed.sql
1212
node_modules/
1313
sqlpage/sqlpage.db
1414
tests_uploads/
15+
/test-results/
16+
/playwright-report/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ cargo run
109109
In a separate terminal, run the tests:
110110

111111
```bash
112-
cd tests/end-to-end
113112
npm install
113+
cd tests/end-to-end
114114
npx playwright install chromium
115115
npm run test
116116
```

package-lock.json

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"license": "MIT",
1414
"devDependencies": {
1515
"@biomejs/biome": "^2.5.4"
16-
}
16+
},
17+
"workspaces": [
18+
"tests/end-to-end"
19+
]
1720
}

tests/end-to-end/package-lock.json

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

0 commit comments

Comments
 (0)