Skip to content

Commit

Permalink
test: Add basic distro testing
Browse files Browse the repository at this point in the history
  • Loading branch information
littletof committed Apr 24, 2024
1 parent dd1058e commit 2535aa2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ jobs:

- name: Running tests
if: matrix.config.kind == 'test'
run: deno task test
run: deno task test
distro:
name: Check distros
runs-on: ubuntu-latest
step:
- name: Runs without importmap
run: |
ls
mv ./deno.json ./denox.json
deno test --allow-read=. --allow-net ./test/ci-distributions.ts
mv ./denox.json ./deno.json
10 changes: 10 additions & 0 deletions test/ci-distributions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
"../mod.ts",
"https://deno.land/x/charmd/mod.ts",
"jsr:@littletof/charmd",
].forEach((distro) => {
Deno.test(distro, async () => {
const dist = await import(distro);
console.log(dist.renderMarkdown(`### ${distro}`));
});
});

0 comments on commit 2535aa2

Please sign in to comment.