Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: install sqlite modules in apps/desktop dir

Abdullah Attae45b72a8c450
diff --git a/.github/workflows/desktop.tests.yml b/.github/workflows/desktop.tests.yml
index b899a55b8..dac94ed5b 100644
--- a/.github/workflows/desktop.tests.yml
+++ b/.github/workflows/desktop.tests.yml
@@ -33,8 +33,12 @@ jobs:
run: |
npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=web
+
+ - name: Install sqlite-better-trigram for all arch
+ run: |
npm i --cpu x64 sqlite-better-trigram
npm i --cpu x64 sqlite3-fts5-html
+ working-directory: ./apps/desktop
- name: Run tests x64
run: npm run test
@@ -63,8 +67,12 @@ jobs:
run: |
npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=web
+
+ - name: Install sqlite-better-trigram for all arch
+ run: |
npm i --cpu arm64 sqlite-better-trigram
npm i --cpu arm64 sqlite3-fts5-html
+ working-directory: ./apps/desktop
- name: Run tests arm64
run: npm run test
@@ -93,8 +101,12 @@ jobs:
run: |
npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=web
+
+ - name: Install sqlite-better-trigram for all arch
+ run: |
npm i --cpu x64 sqlite-better-trigram
npm i --cpu x64 sqlite3-fts5-html
+ working-directory: ./apps/desktop
- name: Run tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" -- npm run test
@@ -123,8 +135,12 @@ jobs:
run: |
npm ci --ignore-scripts --prefer-offline --no-audit
npm run bootstrap -- --scope=web
+
+ - name: Install sqlite-better-trigram for all arch
+ run: |
npm i --cpu x64 sqlite-better-trigram
npm i --cpu x64 sqlite3-fts5-html
+ working-directory: ./apps/desktop
- name: Run tests
run: npm run test
diff --git a/apps/desktop/playwright.config.ts b/apps/desktop/playwright.config.ts
index 70b659d75..292e14409 100644
--- a/apps/desktop/playwright.config.ts
+++ b/apps/desktop/playwright.config.ts
@@ -46,7 +46,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
globalTimeout: 5400000,
workers: process.env.CI ? 1 : undefined,
forbidOnly: !!process.env.CI,
- retries: process.env.CI ? 3 : 0,
+ retries: process.env.CI ? 1 : 0,
reporter: process.env.CI
? [["dot"], ["json", { outputFile: path.join(outputDir, "report.json") }]]
: "line",