diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6a8283..30d2061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: download deno - uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@v2 with: - deno-version: v1.x + deno-version: v2.x - name: check format if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99a6d5f..c065318 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Deno - uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@v2 - name: Publish package run: deno publish diff --git a/docs/pyro.yml b/docs/pyro.yml index 255c367..204f5bf 100644 --- a/docs/pyro.yml +++ b/docs/pyro.yml @@ -11,5 +11,5 @@ footer: Learn: - Introduction / Community: - - Discord https://discord.gg/XJMMSSC4Fj - - Support https://github.com/lino-levan/astral/issues/new \ No newline at end of file + - Discord https://discord.gg/XJMMSSC4Fj + - Support https://github.com/lino-levan/astral/issues/new diff --git a/tests/fixtures/fill.html b/tests/fixtures/fill.html index 0c03bb9..212ed7f 100644 --- a/tests/fixtures/fill.html +++ b/tests/fixtures/fill.html @@ -6,6 +6,6 @@ Fill - + diff --git a/tests/locator_test.ts b/tests/locator_test.ts index 94a7479..0917ae4 100644 --- a/tests/locator_test.ts +++ b/tests/locator_test.ts @@ -15,20 +15,14 @@ async function serveFixture(name: string) { const html = await Deno.readFile(file); - let address = ""; - const server = Deno.serve({ - port: 0, - onListen(addr) { - address = `http://${addr.hostname}:${addr.port}`; - }, - }, () => { + const server = Deno.serve({ port: 0 }, () => { return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8" }, }); }); return { - address, + address: `http://localhost:${server.addr.port}`, async [Symbol.asyncDispose]() { await server.shutdown(); await server.finished;