mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-12 12:40:33 +08:00
Merge pull request #884 from porink0424/feat/add-type-check-to-standaloneapp
Add type-checks on `standalone_app`
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
- run: npm run lint
|
||||
|
||||
type-check:
|
||||
name: Type checking on optuna-dashboard
|
||||
name: Type checking on optuna-dashboard & standalone_app
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -44,12 +44,24 @@ jobs:
|
||||
- name: Setup tslib
|
||||
run: make tslib
|
||||
|
||||
- name: Type Check
|
||||
- name: Type Check optuna_dashboard
|
||||
working-directory: optuna_dashboard
|
||||
run: |
|
||||
npm install
|
||||
npm run type-check
|
||||
|
||||
- name: Build rustlib for standalone_app
|
||||
working-directory: rustlib
|
||||
run: |
|
||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
wasm-pack build --target web
|
||||
|
||||
- name: Type Check standalone_app
|
||||
working-directory: standalone_app
|
||||
run: |
|
||||
npm install
|
||||
npm run type-check
|
||||
|
||||
check-package-lock-json:
|
||||
name: Check package-lock.json
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"watch": "vite",
|
||||
"build:vscode": "webpack"
|
||||
"build:vscode": "webpack",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@optuna/types": "../tslib/types",
|
||||
|
||||
Reference in New Issue
Block a user