Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typesense-js dependency to 2.0.0-14 and fix Ubuntu 24.04 issues on CI #229

Merged
merged 7 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,45 @@ jobs:
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run build
- run: npm test -- --ci --color

- name: Install Puppeteer dependencies
run: |
sudo apt-get update
sudo apt install -y --no-install-recommends \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libasound2t64 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libgbm-dev \
libatk-bridge2.0-0 \
binutils \
libglib2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnss3-dev \
libxss-dev \
xvfb \
fonts-liberation \
libu2f-udev \
xdg-utils \
chromium-browser

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run tests
run: npm test -- --ci --color

- uses: actions/upload-artifact@v3
if: always()
with:
name: screenshots
path: screenshots/
Expand Down
2,828 changes: 1,089 additions & 1,739 deletions dist/typesense-instantsearch-adapter.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const isDebugMode = process.env.NODE_OPTIONS && process.env.NODE_OPTIONS.includes("javascript-debugger");

module.exports = {
launch: {
dumpio: true,
// headless: process.env.HEADLESS === "true" || process.env.CI === "true",
headless: isDebugMode ? false : true,
slowMo: 10,
defaultViewport: null,
// devtools: true
executablePath: process.env.CHROME_PATH,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
},
server: [
{
Expand Down
38 changes: 27 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"typesense": "^1.8.2"
"typesense": "^2.0.0-14"
},
"peerDependencies": {
"@babel/runtime": "^7.24.1"
Expand Down
Loading