Skip to content

Commit

Permalink
Add static typecheck to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Jan 15, 2023
1 parent 31c2f6c commit 71b3ee4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 60 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ jobs:
- name: Run build
run: deno task build

- name: Run static type check
run: deno task check

- name: Run tests
run: deno task test
1 change: 1 addition & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"tasks": {
"clean": "rm -rf dist dist_bundle",
"install": "deno install -f -A --unstable silverbullet.ts",
"check": "find web common server plugs cmd plug-api plugos -name '*.ts*' | xargs deno check",
"test": "deno test -A --unstable",
"build": "deno run -A --unstable --check build_plugs.ts && deno run -A --unstable --check build_web.ts",
"plugs": "deno run -A --unstable --check build_plugs.ts",
Expand Down
60 changes: 0 additions & 60 deletions plugos/bin/plugos-server.ts

This file was deleted.

1 change: 1 addition & 0 deletions plugs/markdown/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function sharePublisher(event: PublishEvent) {
const markdownHtml = renderMarkdownToHtml(tree, {
smartHardBreak: true,
});

const html =
`<html><head><style>${css}</style></head><body><div id="root">${markdownHtml}</div></body></html>`;
await rootFS.writeFile(path, html, "utf8");
Expand Down

0 comments on commit 71b3ee4

Please sign in to comment.