Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
5 changes: 3 additions & 2 deletions packages/web-console/.eslintrc.js → .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
es6: true,
},
extends: [
"standard-with-typescript",
"love",
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = {
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-pascal-case": "error",
"react/jsx-sort-props": "error",
"react/jsx-sort-props": "off",
"react/jsx-sort-default-props": "error",
"react/jsx-wrap-multilines": "error",
"react/jsx-tag-spacing": [
Expand All @@ -90,6 +90,7 @@ module.exports = {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-call": "off",
"quote-props": ["error", "as-needed"],
"object-shorthand": ["error", "always"],
"no-unused-vars": "off",
Expand Down
10 changes: 0 additions & 10 deletions .eslintrc.json

This file was deleted.

44 changes: 16 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
cache: maven

- name: Build QuestDB
run: mvn clean package -f packages/browser-tests/questdb/pom.xml -DskipTests -P build-binaries
run: mvn clean package -f e2e/questdb/pom.xml -DskipTests -P build-binaries

- name: Extract QuestDB
run: tar -xzf packages/browser-tests/questdb/core/target/questdb-*-rt-linux-x86-64.tar.gz -C tmp/
run: tar -xzf e2e/questdb/core/target/questdb-*-rt-linux-x86-64.tar.gz -C tmp/

- name: Create DB Root
run: mkdir tmp/dbroot
Expand All @@ -40,22 +40,19 @@ jobs:
cache: "yarn"

- name: Install dependencies
run: yarn install --immutable --immutable-cache
run: yarn install --immutable

- name: Build @questdb/react-components
run: yarn workspace @questdb/react-components run build
- name: Build
run: yarn build

- name: Build @questdb/web-console
run: yarn workspace @questdb/web-console run build
- name: Run bundle watcher
run: yarn bundlewatch

- name: Run bundle watcher on @questdb/web-console
run: yarn workspace @questdb/web-console bundlewatch
- name: Run unit tests
run: yarn test:unit

- name: Run @questdb/web-console unit tests
run: yarn workspace @questdb/web-console run test:prod

- name: Run browser-tests test - auth
run: node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
- name: Run e2e tests - auth
run: yarn preview & yarn test:e2e:auth

- name: Stop QuestDB
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
Expand All @@ -68,8 +65,8 @@ jobs:
QDB_HTTP_PASSWORD: "quest"
QDB_TELEMETRY_ENABLED: "false"

- name: Run browser-tests test
run: yarn workspace browser-tests test
- name: Run e2e tests
run: yarn test:e2e

- name: Print Log Files
if: success() || failure()
Expand All @@ -87,27 +84,18 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: cypress-screenshots
path: packages/browser-tests/cypress/screenshots
path: e2e/screenshots
if-no-files-found: ignore

- name: Stop QuestDB
if: success() || failure()
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop

- name: Publish @questdb/react-components to npm
if: success() && github.ref == 'refs/heads/main'
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
strategy: upgrade
package: ./packages/react-components/package.json

- name: Publish @questdb/web-console to npm
- name: Publish to npm
if: success() && github.ref == 'refs/heads/main'
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
strategy: upgrade
package: ./packages/web-console/package.json
package: ./package.json
25 changes: 7 additions & 18 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Publish Packages to NPM
name: Publish to NPM

on:
workflow_dispatch:

jobs:
publish:
name: Publish Packages to NPM
name: Publish to NPM
runs-on: ubuntu-latest

steps:
Expand All @@ -19,26 +19,15 @@ jobs:
cache: "yarn"

- name: Install dependencies
run: yarn install --immutable --immutable-cache
run: yarn install --immutable

- name: Build @questdb/react-components
run: yarn workspace @questdb/react-components run build
- name: Build
run: yarn build

- name: Build @questdb/web-console
run: yarn workspace @questdb/web-console run build

- name: Publish @questdb/react-components to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
check-version: true
package: ./packages/react-components/package.json

- name: Publish @questdb/web-console to npm
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
check-version: true
package: ./packages/web-console/package.json
package: ./package.json
31 changes: 14 additions & 17 deletions .github/workflows/tests_with_context_path.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
cache: maven

- name: Build QuestDB
run: mvn clean package -f packages/browser-tests/questdb/pom.xml -DskipTests -P build-binaries
run: mvn clean package -f e2e/questdb/pom.xml -DskipTests -P build-binaries

- name: Extract QuestDB
run: tar -xzf packages/browser-tests/questdb/core/target/questdb-*-rt-linux-x86-64.tar.gz -C tmp/
run: tar -xzf e2e/questdb/core/target/questdb-*-rt-linux-x86-64.tar.gz -C tmp/

- name: Create DB Root
run: mkdir tmp/dbroot
Expand All @@ -43,22 +43,19 @@ jobs:
cache: "yarn"

- name: Install dependencies
run: yarn install --immutable --immutable-cache
run: yarn install --immutable

- name: Build @questdb/react-components
run: yarn workspace @questdb/react-components run build
- name: Build
run: yarn build

- name: Build @questdb/web-console
run: yarn workspace @questdb/web-console run build
- name: Run bundle watcher
run: yarn bundlewatch

- name: Run bundle watcher on @questdb/web-console
run: yarn workspace @questdb/web-console bundlewatch
- name: Run unit tests
run: yarn test:unit

- name: Run @questdb/web-console unit tests
run: yarn workspace @questdb/web-console run test:prod

- name: Run browser-tests test - auth
run: node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
- name: Run e2e tests - auth
run: yarn preview & yarn test:e2e:auth

- name: Stop QuestDB
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
Expand All @@ -71,8 +68,8 @@ jobs:
QDB_HTTP_PASSWORD: "quest"
QDB_TELEMETRY_ENABLED: "false"

- name: Run browser-tests test
run: yarn workspace browser-tests test
- name: Run e2e tests
run: yarn test:e2e

- name: Print Log Files
if: success() || failure()
Expand All @@ -90,7 +87,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: cypress-screenshots
path: packages/browser-tests/cypress/screenshots
path: e2e/screenshots
if-no-files-found: ignore

- name: Stop QuestDB
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
node_modules
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.idea
.DS_Store
*.iml
dist
.tmp
.sass-cache
.env
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "questdb"]
path = packages/browser-tests/questdb
path = e2e/questdb
url = https://github.com/questdb/questdb.git
Loading
Loading