Skip to content

Commit

Permalink
view as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Sep 5, 2024
1 parent 0a2cfa9 commit f76c51f
Show file tree
Hide file tree
Showing 35 changed files with 52 additions and 491 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-view.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Reusable Workflow

on:
workflow_call:
inputs:
node_version:
type: string

jobs:
reusable_job:
runs-on: ubuntu-latest
outputs:
job_output: ${{ steps.set_output.outputs.step_output }}
steps:
- name: Use Node.js ${{ inputs.node_version }}
uses: actions/[email protected]
with:
node-version: ${{ inputs.node_version }}
cache: "pnpm"

- run: git submodule init && git submodule update

- run: cd view/qryn-view

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: cleanup
run: cd .. && mv qryn-view/packages/main/dist/* . && rm -rf qryn-view
12 changes: 12 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
if: ${{ steps.checksecrets.outputs.secretspresent }}
with:
node-version: 18
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
with:
node_version: 18
- name: Publish to NPM
if: ${{ steps.checksecrets.outputs.secretspresent }}
continue-on-error: true
Expand Down Expand Up @@ -65,6 +69,10 @@ jobs:
fi
env:
SECRET: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
with:
node_version: 18
- name: Set up Docker QEMU
if: ${{ steps.checkdocker.outputs.secretspresent }}
uses: docker/[email protected]
Expand Down Expand Up @@ -136,6 +144,10 @@ jobs:
fi
env:
SECRET: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
with:
node_version: 18
- name: Set up Docker QEMU
if: ${{ steps.checkdocker.outputs.secretspresent }}
uses: docker/[email protected]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/node-clickhouse.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
with:
node_version: ${{ matrix.node-version }}
- run: npm install
- run: npm run postinstall
- run: git submodule init
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "test/e2e"]
path = test/e2e
url = https://github.com/metrico/cloki-test.git
[submodule "view/qryn-view"]
path = view/qryn-view
url = https://github.com/metrico/qryn-view.git
1 change: 0 additions & 1 deletion view/assets/AddOutlined-uQBKZQpc.js

This file was deleted.

1 change: 0 additions & 1 deletion view/assets/App-CfSzliXK.js

This file was deleted.

1 change: 0 additions & 1 deletion view/assets/DataSources-DlyxrvND.js

This file was deleted.

1 change: 0 additions & 1 deletion view/assets/DeleteOutlineOutlined-wSqFpREd.js

This file was deleted.

Loading

0 comments on commit f76c51f

Please sign in to comment.