Skip to content

Commit

Permalink
get ready
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Mar 6, 2024
1 parent 844ea4d commit 96e2773
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,35 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@master
- uses: denoland/setup-deno@main
with:
deno-version: "1.x"
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v1

- name: Run fmt
run: |
deno fmt --check
- name: Run lint
run: |
deno lint
- name: Check project
run: |
deno task check:types
- name: Install Chromium
run: deno run -A --unstable https://deno.land/x/[email protected]/install.ts
env:
PUPPETEER_PRODUCT: chrome

- name: Run tests
run: |
deno task test
- name: Publish package (tag only)
if: startsWith(github.ref, 'refs/tags/')
run: deno publish
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deno/gfm",
"version": "0.6.1",
"version": "0.6.2",
"exports": "./mod.ts",
"imports": {
"emoji": "jsr:@denosaurs/[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Deno.test(

Deno.test("image title and no alt", () => {
const markdown = `![](image.jpg "best title")`;
const expected = `<p><img src="image.jpg" title="best title" /></p>\n`;
const expected = `<p><img src="image.jpg" alt="" title="best title" /></p>\n`;

const html = render(markdown);
assertEquals(html, expected);
Expand Down

0 comments on commit 96e2773

Please sign in to comment.