File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 29
29
- run : rustup update --no-self-update stable && rustup default stable
30
30
- run : rustup component add rustfmt
31
31
- run : cargo fmt --all -- --check
32
-
32
+
33
33
# Check TOML style by using Taplo.
34
34
taplo :
35
35
name : Taplo
@@ -240,6 +240,22 @@ jobs:
240
240
# WBINDGEN_I_PROMISE_JS_SYNTAX_WORKS_IN_NODE: 1
241
241
# - run: cargo build --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --features "Node Window Document"
242
242
243
+ # This checks that the output of the CLI is actually valid JavaScript and TypeScript
244
+ test_cli_reference_typescript :
245
+ name : Run CLI reference TypeScript check
246
+ runs-on : ubuntu-latest
247
+ steps :
248
+ - uses : actions/checkout@v4
249
+ - uses : actions/setup-node@v4
250
+ with :
251
+ node-version : ' lts/*'
252
+ - run : npm i -g typescript
253
+ - run : npm i --save @types/node @types/deno
254
+ - name : Check TypeScript output
255
+ run : tsc --noEmit --skipLibCheck --lib esnext,dom $(echo crates/cli/tests/reference/*.d.ts)
256
+ - name : Check JavaScript output
257
+ run : tsc --noEmit --skipLibCheck --lib esnext,dom --module esnext --allowJs $(echo crates/cli/tests/reference/*.js)
258
+
243
259
test_native :
244
260
name : Run native tests
245
261
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments