Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Cleanup and enforce types check #1102

Merged
merged 6 commits into from
Feb 7, 2025
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/modified-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
needs: changes
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
strategy:
fail-fast: false
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
uses: ./.github/workflows/test-python-package.yml
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:
# Only build main docs for push on main branch and PRs to main
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' && (github.ref == 'refs/heads/main' || github.base_ref == 'main') && (github.event_name == 'push' || github.event_name == 'pull_request')}}
strategy:
fail-fast: false
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
uses: ./.github/workflows/build-main-docs.yml
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,18 @@ jobs:
if: steps.restore-node-modules.outputs.cache-hit != 'true'
run: npm ci --no-audit

- name: Build check
run: npm run build

- name: Type check
if: always() # Can still run types even if the build fails
run: npm run types

# Run all tests for all the packages
# Caching with the absolute path b/c Jest will make a folder in each project
# Then there's caches in all plugin folders
- name: Run Tests
if: always() # Can still run jest tests even if the build/types fail
run: npm run test:ci

- name: Always cache node modules
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/typescript-check.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"docker": "docker compose up deephaven-plugins --build",
"start": "run-p \"start:packages -- {@}\" serve:plugins --",
"build": "lerna run build --stream",
"watch:types": "tsc -p . --watch --emitDeclarationOnly false --noEmit",
"types": "tsc",
"watch:types": "tsc --watch",
"serve:plugins": "vite",
"start:packages": "lerna run start --stream",
"test": "jest --watch --changedSince origin/main",
Expand Down
2 changes: 1 addition & 1 deletion plugins/example-theme/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "vite build",
"preview": "vite preview",
"start": "npm run build -- -w",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
Expand Down
2 changes: 1 addition & 1 deletion plugins/plotly-express/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/deephaven/deephaven-plugins",
"scripts": {
"start": "vite build --watch",
"build": "tsc && vite build",
"build": "vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
Expand Down
50 changes: 0 additions & 50 deletions tools/check_typescript_ci.py

This file was deleted.

4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": "@deephaven/tsconfig",
"compilerOptions": {
"emitDeclarationOnly": false,
bmingles marked this conversation as resolved.
Show resolved Hide resolved
"noEmit": true
},
"include": [
"plugins/**/**.ts",
"plugins/**/**.tsx",
Expand Down
Loading