Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'packages/**'
- 'rust/cubestore/**'
- 'rust/cubesql/**'
- 'rust/cubetranspilers/**'
- '.eslintrc.js'
- '.prettierrc'
- 'package.json'
Expand All @@ -24,6 +25,7 @@ on:
- 'packages/**'
- 'rust/cubestore/**'
- 'rust/cubesql/**'
- 'rust/cubetranspilers/**'
- '.eslintrc.js'
- '.prettierrc'
- 'package.json'
Expand All @@ -42,11 +44,17 @@ jobs:
matrix:
# Current docker version + next LTS
node-version: [20.x, 22.x]
python-version: [3.11]
transpile-worker-threads: [false, true]
transpile-native: [false, true]
exclude:
- transpile-worker-threads: true
transpile-native: true
fail-fast: false

env:
CUBEJS_TRANSPILATION_WORKER_THREADS: ${{ matrix.transpile-worker-threads }}
CUBEJS_TRANSPILATION_NATIVE: ${{ matrix.transpile-native }}
steps:
- id: get-tag-out
run: echo "$OUT"
Expand All @@ -68,6 +76,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -95,6 +107,11 @@ jobs:
run: yarn tsc
- name: Build client
run: yarn build
- name: Build cubejs-backend-native (with Python)
run: yarn run native:build-release-python
working-directory: ./packages/cubejs-backend-native
env:
PYO3_PYTHON: python${{ matrix.python-version }}
- name: Lerna test
run: yarn lerna run --concurrency 1 --stream --no-prefix unit
# - uses: codecov/codecov-action@v1
Expand All @@ -103,7 +120,9 @@ jobs:
# files: ./packages/*/coverage/clover.xml
# flags: cube-backend
# verbose: true # optional (default = false)

- name: Cargo test cubetranspilers
run: |
cargo test --manifest-path rust/cubetranspilers/Cargo.toml -j 1
lint:
runs-on: ubuntu-20.04
timeout-minutes: 60
Expand Down Expand Up @@ -151,6 +170,9 @@ jobs:
run: yarn lint:npm
- name: Lerna lint
run: yarn lerna run --concurrency 1 lint
- name: Cargo fmt cubetranspilers
run: |
cargo fmt --manifest-path rust/cubetranspilers/Cargo.toml -- --check

build:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -203,6 +225,9 @@ jobs:
run: yarn lerna run --concurrency 1 build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Cargo build cubetranspilers
run: |
cargo build --manifest-path rust/cubetranspilers/Cargo.toml -j 4

build-cubestore:
needs: [latest-tag-sha]
Expand Down
Loading
Loading