1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-27 07:44:35 +02:00

update github action

This commit is contained in:
Thomas Wilkerling
2025-05-23 19:16:51 +02:00
parent d082d1472c
commit c0471001f5
3 changed files with 10 additions and 4 deletions

View File

@@ -59,7 +59,15 @@ jobs:
with:
java-version: 21
- run: npm install
- run: npm run build:bundle --if-present
- run: npm run build:light --if-present
- run: npm run build:compact --if-present
- run: npm run build:module:light --if-present
- run: npm run build:module:compact --if-present
- run: npm install clickhouse
- run: npm install redis
- run: npm install mongodb
- run: npm install pg-promise
- run: npm install sqlite3
- run: npm install
working-directory: test
- run: npm run test:github

View File

@@ -1,8 +1,6 @@
global.self = global;
const env = process.argv[process.argv.length - 1] === "--exit" ? "" : process.argv[process.argv.length - 1];
import { expect } from "chai";
console.log(process.argv)
console.log("--RELEASE-------------");
console.log(env ? "dist/" + env + ".js" : "src/bundle.js")
console.log("----------------------");

View File

@@ -4,7 +4,7 @@
"scripts": {
"test": "mocha ./*.js --exit",
"test:ts": "npx tsc --noEmit --lib esnext ./types.ts",
"test:github": "npm run test:ts && mocha ./*.js --exit flexsearch.compact.min && mocha ./*.js --exit flexsearch.compact.module.min",
"test:github": "npm run test:ts && mocha ./*.js --exit flexsearch.light.min && mocha ./*.js --exit flexsearch.light.module.min && mocha ./*.js --exit flexsearch.compact.min && mocha ./*.js --exit flexsearch.compact.module.min",
"test:coverage": "c8 -c ./.c8rc.json mocha ./*.js --exit",
"test:keystore": "set NODE_OPTIONS=--max-old-space-size=16000 && c8 -c ./.c8rc.json mocha ./keystore.js --exit",
"test:db": "c8 -c ./.c8rc.json mocha ./persistent.*.js --exit",