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 2 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
4 changes: 4 additions & 0 deletions .github/workflows/test-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ jobs:
if: steps.restore-node-modules.outputs.cache-hit != 'true'
run: npm ci --no-audit

- name: Build and type check
run: npm run build

# 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
27 changes: 0 additions & 27 deletions .github/workflows/typescript-check.yml

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"scripts": {
"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",
"build": "run-s types build:packages",
"build:packages": "lerna run build --stream",
"types": "tsc",
"watch:types": "tsc --watch",
"serve:plugins": "vite",
"start:packages": "lerna run start --stream",
"test": "jest --watch --changedSince origin/main",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
) {
super(dh);

this.widget = widget;
this.widget = 4;

Check failure on line 51 in plugins/plotly-express/src/js/src/PlotlyExpressChartModel.ts

View workflow job for this annotation

GitHub Actions / test-js / unit

Type 'number' is not assignable to type 'Widget'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattrunyon Was this left here intentionally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I did it to test that the CI test actually fails. Turns out I broke CI because it runs npm run build -- --scope <plugin> and I changed the build script at the root. I'll fix that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I wanted to see which was what the Python file was doing before. It's built-in to the setup-node action.

image

this.refetch = refetch;
this.chartUtils = new ChartUtils(dh);

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