Skip to content

Commit

Permalink
Merge pull request #229 from tharropoulos/update-deps
Browse files Browse the repository at this point in the history
Update typesense-js dependency to 2.0.0-14 and fix Ubuntu 24.04 issues on CI
  • Loading branch information
jasonbosco authored Jan 16, 2025
2 parents 8f2346d + 5d9fb36 commit f58a529
Show file tree
Hide file tree
Showing 8 changed files with 1,161 additions and 1,759 deletions.
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

0 comments on commit f58a529

Please sign in to comment.