Skip to content
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: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
nix_version: 2.31.2
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1
- run: deno task build
- run: deno test --allow-read
- run: deno test -P
typecheck:
name: Check TypeScript
runs-on: ubuntu-24.04
Expand Down
8 changes: 6 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"exclude": ["!src/main.wasm", "!src/wasm_exec.js"]
},
"tasks": {
"build": "deno run --allow-env --allow-read --allow-run --allow-write build.ts",
"test": "deno test --allow-read"
"build": "deno run --allow-env --allow-read --allow-run --allow-write build.ts"
},
"test": {
"permissions": {
"read": ["src/main.wasm", "tests/publiccode.yml"]
}
}
}
3 changes: 1 addition & 2 deletions tests/mod_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { initializeWasm, validator } from "../src/validator.ts";
await initializeWasm();

Deno.test("Simple test", async () => {
const path = new URL("./publiccode.yml", import.meta.url);
const publicCodeYaml = await Deno.readTextFile(path);
const publicCodeYaml = await Deno.readTextFile("tests/publiccode.yml");

const res = await validator({ publiccode: publicCodeYaml });

Expand Down