From 06142711458721c7e465e00e731401be3292aab7 Mon Sep 17 00:00:00 2001 From: Etienne Deladonchamps Date: Sun, 4 Aug 2024 16:11:56 +0200 Subject: [PATCH] Fix CI --- .github/workflows/publish.yml | 6 ++++++ deno.json | 4 ++-- tests/utils.ts | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db9338b..d6bd613 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,12 @@ jobs: with: deno-version: v1.x # Run with latest stable Deno. + - name: Install dependencies (Linux) + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y -q --no-install-recommends libfontconfig1 + - run: deno task check - run: npx jsr publish diff --git a/deno.json b/deno.json index 3700935..d706585 100644 --- a/deno.json +++ b/deno.json @@ -10,8 +10,8 @@ "@std/path": "jsr:@std/path@^1.0.2" }, "tasks": { - "test:run": "deno test -A --allow-ffi --unstable-ffi", - "test:watch": "deno test -A --allow-ffi --unstable-ffi --watch", + "test:run": "deno test -A --unstable-ffi", + "test:watch": "deno test -A --unstable-ffi --watch", "bump": "deno run -A jsr:@mys/bump@1", "update": "deno run --allow-read=. --allow-write=. --allow-net https://deno.land/x/udd@0.8.2/main.ts *.ts deno.json", "check": "deno fmt --check . && deno lint . && deno task test:run" diff --git a/tests/utils.ts b/tests/utils.ts index 9b40706..2d53396 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -158,7 +158,7 @@ export async function matchCanvasImage( fileName: string, config: CanvasImageConfig, ) { - const data = await canvasImage( + const data = canvasImage( spring, fileName, config,