From afb465df56ea06b5a7c94f5fa59bfc1d13d4eacf Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 10:38:14 -0500 Subject: [PATCH 1/8] fix syntax --- .github/workflows/node.js.yml | 8 ++++---- Dockerfile | 2 +- package.json | 7 ++++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4fc0bb4..4157a4a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -44,7 +44,7 @@ jobs: DEBUG: 'none' - name: Run E2E tests against the container app - run: REPLAY=bloody URL=https://localhost:3183 npm run test:deprecated || echo 'Test run failed when trying to use the deployed auth app' + run: npm run test:deprecated:e2e || echo 'Test run failed when trying to use the deployed auth app' env: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' @@ -69,7 +69,7 @@ jobs: - name: Run Integration tests run: DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch' - name: Run integration tests using the app with local couchdb - run: REPLAY=bloody npm run test:deprecated + run: npm run test:deprecated:coverage env: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' @@ -92,7 +92,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - sparse-checkout:: | + sparse-checkout: | package.json - name: Use Node.js 24.x uses: actions/setup-node@v6 @@ -104,7 +104,7 @@ jobs: timeout-minutes: 5 env: BASE_URL: https://localhost:6984 - BASE_PATH: /prototype/_design/prototype + BASE_PATH: /prototypedev/_design/prototype - name: Upload Playwright report and traces for trace.playwright.dev uses: actions/upload-artifact@v5 diff --git a/Dockerfile b/Dockerfile index 9b889de..ee43064 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN ls -alt; \ ls config/local.js || echo " config/local.js is required to be able to run the tests against deployed couchdb" ENV DEBUG="*,-express*" -ENV NODE_ENV=localhost +ENV NODE_ENV=local EXPOSE 3183 diff --git a/package.json b/package.json index 15f3b62..d4056b7 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,8 @@ }, "scripts": { "docker:build": "docker build -t fielddb-auth .", - "test:e2e": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated", - "docker:test:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose build --no-cache && docker compose up -d && sleep 15 && docker compose logs && npm run setup && npm run test:deprecated", + "test:docker": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated:e2e", + "test:docker:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose build --no-cache && docker compose up -d && sleep 15 && docker compose logs && npm run setup && npm run test:deprecated:e2e", "coverage": "NODE_ENV=test BUNYAN_LOG_LEVEL=FATAL nyc npm test", "lint": "eslint ", "lint:ci": "eslint .", @@ -71,7 +71,8 @@ "start": "node ./bin/www.js", "test": "SOURCE_URL=${SOURCE_URL:-https://public:none@corpusdev.example.org} NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --timeout 100000 --recursive test", "test:debug": "node-debug _mocha test/integration/oauth.js", - "test:deprecated": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha --timeout 25000 test/routes/deprecated-spec.js", + "test:deprecated:e2e": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 nyc mocha --timeout 25000 test/routes/deprecated-spec.js", + "test:deprecated:coverage": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha --timeout 25000 test/routes/deprecated-spec.js", "test:fielddb": "NODE_ENV=localhost jasmine-node node_modules/fielddb/tests", "test:production": "ls config/production.js", "test:ui": "git clone --filter=blob:none --no-checkout https://github.com/FieldDB/FieldDB.git; cd FieldDB; git sparse-checkout set test-e2e; git checkout HEAD; cd test-e2e && npm install && npx playwright install chromium && BASE_URL=${BASE_URL:-https://localhost:6984} BASE_PATH=${BASE_PATH:-/prototypedev/_design/prototype} DEBUG=${DEBUG:-none} npm run test -- --retries=0 --project=Chromium register", From 4104fb5c8c791235115462a575e5350c715aed65 Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 10:41:56 -0500 Subject: [PATCH 2/8] fix indentation --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4157a4a..128541b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -92,8 +92,8 @@ jobs: steps: - uses: actions/checkout@v6 with: - sparse-checkout: | - package.json + sparse-checkout: | + package.json - name: Use Node.js 24.x uses: actions/setup-node@v6 with: From 7a1e89c7f86522623afe9b48cacae4403d5082a3 Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 10:48:25 -0500 Subject: [PATCH 3/8] install deps --- .github/workflows/node.js.yml | 3 ++- docker-compose.yml | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 128541b..2139a1e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -63,6 +63,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' + - run: npm ci - name: Create local config for tests to use the couchdb from the container run: | echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/local.js @@ -110,6 +111,6 @@ jobs: uses: actions/upload-artifact@v5 if: ${{ !cancelled() }} # Upload even if the previous step failed with: - name: test-results # Name of the artifact + name: ui-test-results # Name of the artifact path: FieldDB/test-e2e/test-results/ # Path to the directory containing reports and traces retention-days: 30 diff --git a/docker-compose.yml b/docker-compose.yml index f09b2dc..41d5951 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: environment: - COUCHDB_USER=admin - COUCHDB_PASSWORD=none - auth_app: + app: depends_on: - couchdb build: diff --git a/package.json b/package.json index d4056b7..dd14927 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "start": "node ./bin/www.js", "test": "SOURCE_URL=${SOURCE_URL:-https://public:none@corpusdev.example.org} NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --timeout 100000 --recursive test", "test:debug": "node-debug _mocha test/integration/oauth.js", - "test:deprecated:e2e": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 nyc mocha --timeout 25000 test/routes/deprecated-spec.js", + "test:deprecated:e2e": "DEBUG=${DEBUG:-test:deprecated} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 mocha --timeout 25000 test/routes/deprecated-spec.js", "test:deprecated:coverage": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha --timeout 25000 test/routes/deprecated-spec.js", "test:fielddb": "NODE_ENV=localhost jasmine-node node_modules/fielddb/tests", "test:production": "ls config/production.js", From 750f123d9acd8200a9becd23b0c3c4bd816c81f5 Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 11:01:53 -0500 Subject: [PATCH 4/8] the app knows of localhost as a config --- .github/workflows/docker-image.yml | 2 +- .github/workflows/node.js.yml | 16 ++++++++-------- .gitignore | 1 + Dockerfile | 4 ++-- auth_service.js | 2 +- config/default.js | 3 ++- package.json | 4 ++-- 7 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c7efa37..44d7cf2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,4 +15,4 @@ jobs: steps: - uses: actions/checkout@v6 - name: Build the Docker image - run: "echo 'module.exports = { usersDbConnection: { url: \"http://localhost:5984\" }};' > config/local.js && docker build . --file Dockerfile --tag fielddb-auth:$(date +%s)" + run: "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" }};' > config/localhost.js && docker build . --file Dockerfile --tag fielddb-auth:$(date +%s)" diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2139a1e..d14d94a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [24.x] + node-version: [25.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -29,7 +29,7 @@ jobs: - name: Create local config for the app to connect to couchdb service in the container run: | - echo 'module.exports = { usersDbConnection: { url: "http://couchdb:5984" }};' > config/local.js + echo 'module.exports = { usersDbConnection: { url: "http://couchdb:5984" }};' > config/localhost.js - name: Start docker compose services run: docker compose up -d && sleep 5 @@ -44,14 +44,14 @@ jobs: DEBUG: 'none' - name: Run E2E tests against the container app - run: npm run test:deprecated:e2e || echo 'Test run failed when trying to use the deployed auth app' + run: DEBUG=test:deprecated npm run test:deprecated:e2e || echo 'Test run failed when trying to use the deployed auth app' env: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' - name: Show docker compose logs if: success() || failure() - run: docker compose logs --no-color --timestamps || true + run: docker compose logs --no-color --timestamps | grep -v "couchdb" || true integration-tests: runs-on: ubuntu-latest @@ -66,14 +66,14 @@ jobs: - run: npm ci - name: Create local config for tests to use the couchdb from the container run: | - echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/local.js + echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/localhost.js - name: Run Integration tests run: DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch' - name: Run integration tests using the app with local couchdb run: npm run test:deprecated:coverage env: SOURCE_URL: ${{ secrets.SOURCE_URL }} - DEBUG: 'none' + DEBUG: 'lib:corpus' - name: Upload coverage report uses: actions/upload-artifact@v5 if: success() || failure() @@ -95,10 +95,10 @@ jobs: with: sparse-checkout: | package.json - - name: Use Node.js 24.x + - name: Use Node.js 25.x uses: actions/setup-node@v6 with: - node-version: 24.x + node-version: 25.x cache: 'npm' - name: Run UI tests run: npm run test:ui diff --git a/.gitignore b/.gitignore index ce62c34..5635ef7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ compiled_handlebars.js *_production* config/production.* config/local.* +config/localhost.* etc Dockerfile-couchdb db diff --git a/Dockerfile b/Dockerfile index ee43064..fa24cca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,10 @@ COPY . . RUN NODE_ENV=production npm ci RUN ls -alt; \ - ls config/local.js || echo " config/local.js is required to be able to run the tests against deployed couchdb" + ls config/localhost.js || echo " config/localhost.js is required to be able to run the tests against deployed couchdb" ENV DEBUG="*,-express*" -ENV NODE_ENV=local +ENV NODE_ENV=localhost EXPOSE 3183 diff --git a/auth_service.js b/auth_service.js index 028633f..2243bed 100755 --- a/auth_service.js +++ b/auth_service.js @@ -8,7 +8,7 @@ const bunyan = require('express-bunyan-logger'); * $ NODE_ENV=production # uses config/production.js * $ NODE_ENV=test # uses config/test.js * $ NODE_ENV=development # uses config/development.js - * $ NODE_ENV=local # uses config/local.js + * $ NODE_ENV=localhost # uses config/localhost.js * $ NODE_ENV=yoursecretconfig # uses config/yoursecretconfig.js */ const config = require('config'); diff --git a/config/default.js b/config/default.js index 3a27a44..c4fad87 100644 --- a/config/default.js +++ b/config/default.js @@ -3,6 +3,7 @@ const path = require('path'); const { Connection } = require('fielddb/api/corpus/Connection'); let deployTarget = process.env.NODE_ENV || 'localhost'; +const PORT = process.env.PORT || process.env.HTTPS_PORT || null; // backward compatible if (deployTarget === 'test') { deployTarget = 'beta'; @@ -36,7 +37,7 @@ module.exports = { httpsOptions: { key: fs.readFileSync(path.join(__dirname, '/fielddb_debug.key'), 'utf8'), cert: fs.readFileSync(path.join(__dirname, '/fielddb_debug.crt'), 'utf8'), - port: '3183', + port: PORT || '3183', protocol: 'https://', }, url: 'https://localhost:3183', diff --git a/package.json b/package.json index dd14927..56bdf64 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,8 @@ }, "scripts": { "docker:build": "docker build -t fielddb-auth .", - "test:docker": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated:e2e", - "test:docker:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/local.js && docker compose build --no-cache && docker compose up -d && sleep 15 && docker compose logs && npm run setup && npm run test:deprecated:e2e", + "test:docker": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/localhost.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated:e2e", + "test:docker:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://couchdb:5984\" } };' > config/localhost.js && docker compose build --no-cache && docker compose up -d && sleep 15 && docker compose logs && npm run setup && npm run test:deprecated:e2e", "coverage": "NODE_ENV=test BUNYAN_LOG_LEVEL=FATAL nyc npm test", "lint": "eslint ", "lint:ci": "eslint .", From 3f86ad6c1015225b5e2445bbbec28500b6696c8f Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 11:17:39 -0500 Subject: [PATCH 5/8] also fix corpusmanagement to use the config --- .github/workflows/node.js.yml | 4 ++-- lib/corpusmanagement.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d14d94a..c842ea1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -44,7 +44,7 @@ jobs: DEBUG: 'none' - name: Run E2E tests against the container app - run: DEBUG=test:deprecated npm run test:deprecated:e2e || echo 'Test run failed when trying to use the deployed auth app' + run: DEBUG=test:deprecated npm run test:deprecated:e2e env: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' @@ -73,7 +73,7 @@ jobs: run: npm run test:deprecated:coverage env: SOURCE_URL: ${{ secrets.SOURCE_URL }} - DEBUG: 'lib:corpus' + DEBUG: 'test:deprecated' - name: Upload coverage report uses: actions/upload-artifact@v5 if: success() || failure() diff --git a/lib/corpusmanagement.js b/lib/corpusmanagement.js index 3fdb696..3067f98 100644 --- a/lib/corpusmanagement.js +++ b/lib/corpusmanagement.js @@ -1,5 +1,5 @@ const { NODE_ENV } = process.env; -const { couchKeys } = require('config'); +const { couchKeys, usersDbConnection } = require('config'); const { Connection } = require('fielddb/api/corpus/Connection'); const debug = require('debug')('lib:corpus:management'); const url = require('url'); @@ -11,7 +11,7 @@ if (!Connection || !Connection.knownConnections || !Connection.knownConnections. throw new Error(`The app config for ${NODE_ENV} is missing app types to support. `); } -const parsed = url.parse('http://localhost:5984'); +const parsed = url.parse(usersDbConnection.url); const couchConnectUrl = `${parsed.protocol}//${couchKeys.username}:${couchKeys.password}@${parsed.host}`; // console.log('Using couchKeys url: ', couchKeys); debug('Using corpus url: ', couchConnectUrl); From 18b829b1d09addace60d93527ea7ae7a968c493a Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 11:18:57 -0500 Subject: [PATCH 6/8] lint ignore ui tests ; --- .github/workflows/node.js.yml | 2 +- eslint.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c842ea1..ea7f237 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -64,7 +64,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - name: Create local config for tests to use the couchdb from the container + - name: Create local config for tests to use the couchdb outside the container run: | echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/localhost.js - name: Run Integration tests diff --git a/eslint.config.js b/eslint.config.js index 2468f65..5a6edd4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -44,5 +44,5 @@ module.exports = defineConfig([ "semi": ["error", "always"], }, }, - globalIgnores(["**/public", "lib/About.js", "lib/FieldDB.js"]), + globalIgnores(["**/public", "lib/About.js", "lib/FieldDB.js", "FieldDB"]), ]); From b874b6b5b07515f1de6f0b926ec3811f1814935c Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 11:36:05 -0500 Subject: [PATCH 7/8] cant reach the container from another job --- .github/workflows/node.js.yml | 37 +++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ea7f237..00d480c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -34,10 +34,10 @@ jobs: - name: Start docker compose services run: docker compose up -d && sleep 5 - - name: Show docker compose logs + - name: Show docker compose logs after creating services run: docker compose logs --no-color --timestamps || true - - name: Run setup + - name: Run setup databases in the couchdb inside the container run: npm run setup env: SOURCE_URL: ${{ secrets.SOURCE_URL }} @@ -49,31 +49,20 @@ jobs: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' - - name: Show docker compose logs + - name: Show docker compose logs after running tests if: success() || failure() run: docker compose logs --no-color --timestamps | grep -v "couchdb" || true - integration-tests: - runs-on: ubuntu-latest - needs: [deploy] - steps: - - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - name: Create local config for tests to use the couchdb outside the container run: | echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/localhost.js - - name: Run Integration tests - run: DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch' - - name: Run integration tests using the app with local couchdb + + - name: Run integration tests using the app against the couchdb in the contianer run: npm run test:deprecated:coverage env: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'test:deprecated' + - name: Upload coverage report uses: actions/upload-artifact@v5 if: success() || failure() @@ -87,6 +76,20 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} + integration-tests: + runs-on: ubuntu-latest + needs: [deploy] + steps: + - uses: actions/checkout@v6 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - name: Run Integration tests + run: DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch' + ui-tests: runs-on: ubuntu-latest needs: [deploy] From 3e49967b8075927f5bd58667ec384022a9e8af02 Mon Sep 17 00:00:00 2001 From: cesine Date: Sat, 27 Dec 2025 11:41:40 -0500 Subject: [PATCH 8/8] ui tests also need the docker running --- .github/workflows/node.js.yml | 47 +++++++++++++---------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 00d480c..3335760 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -10,6 +10,20 @@ on: branches: [ main ] jobs: + integration-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - name: Run Integration tests + run: DEBUG=replay* npm run coverage + # FIXME 'Test run failed replay no longer is working with latest nano which uses node fetch' + deploy: runs-on: ubuntu-latest strategy: @@ -49,8 +63,8 @@ jobs: SOURCE_URL: ${{ secrets.SOURCE_URL }} DEBUG: 'none' - - name: Show docker compose logs after running tests - if: success() || failure() + - name: Show app logs after running tests + if: failure() run: docker compose logs --no-color --timestamps | grep -v "couchdb" || true - name: Create local config for tests to use the couchdb outside the container @@ -61,7 +75,7 @@ jobs: run: npm run test:deprecated:coverage env: SOURCE_URL: ${{ secrets.SOURCE_URL }} - DEBUG: 'test:deprecated' + DEBUG: 'none' # 'test:deprecated' - name: Upload coverage report uses: actions/upload-artifact@v5 @@ -76,33 +90,6 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} - integration-tests: - runs-on: ubuntu-latest - needs: [deploy] - steps: - - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - name: Run Integration tests - run: DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch' - - ui-tests: - runs-on: ubuntu-latest - needs: [deploy] - steps: - - uses: actions/checkout@v6 - with: - sparse-checkout: | - package.json - - name: Use Node.js 25.x - uses: actions/setup-node@v6 - with: - node-version: 25.x - cache: 'npm' - name: Run UI tests run: npm run test:ui timeout-minutes: 5