-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): run web console tests with context path
- Loading branch information
1 parent
c23d571
commit 4108b89
Showing
18 changed files
with
163 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Build and Run Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
context-path: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_and_run_tests: | ||
name: Build and Run Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
cache: maven | ||
|
||
- name: Build QuestDB | ||
run: mvn clean package -f packages/browser-tests/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/ | ||
|
||
- name: Create DB Root | ||
run: mkdir tmp/dbroot | ||
|
||
- name: Start QuestDB | ||
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh start -d ./tmp/dbroot | ||
env: | ||
QDB_DEV_MODE_ENABLED: "true" | ||
QDB_HTTP_CONTEXT_PATH: ${{ inputs.context-path }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache | ||
|
||
- name: Build @questdb/react-components | ||
run: yarn workspace @questdb/react-components run build | ||
|
||
- name: Build @questdb/web-console | ||
run: yarn workspace @questdb/web-console run build | ||
|
||
- name: Run bundle watcher on @questdb/web-console | ||
run: yarn workspace @questdb/web-console bundlewatch | ||
|
||
- 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: Stop QuestDB | ||
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop | ||
|
||
- name: Start QuestDB, set auth credentials | ||
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh start -d ./tmp/dbroot | ||
env: | ||
QDB_DEV_MODE_ENABLED: "true" | ||
QDB_HTTP_USER: "admin" | ||
QDB_HTTP_PASSWORD: "quest" | ||
QDB_HTTP_CONTEXT_PATH: ${{ inputs.context-path }} | ||
|
||
- name: Run browser-tests test | ||
run: yarn workspace browser-tests test | ||
|
||
- name: Print Log Files | ||
if: success() || failure() | ||
run: cat tmp/dbroot/log/* | ||
|
||
- name: Save QuestDB log on test failure | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: questdb-log | ||
path: tmp/dbroot/log/* | ||
|
||
- name: Stop QuestDB | ||
if: success() || failure() | ||
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Run Tests With Context Path | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
run_tests_with_context_path: | ||
name: Running Tests With Context Path | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ./.github/workflows/build_and_run_tests.yml | ||
with: | ||
context-path: "/context" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/browser-tests/cypress/integration/console/editor.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/browser-tests/cypress/integration/console/grid.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/browser-tests/cypress/integration/console/navbars.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/browser-tests/cypress/integration/console/result_charts.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/browser-tests/cypress/integration/console/schema.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
packages/browser-tests/cypress/integration/console/telemetry.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/browser-tests/cypress/integration/console/warnings.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule questdb
updated
86 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.