From db6c998dfbf23480b557d0a3a2ca89e896c5b34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Sun, 3 Mar 2024 15:04:49 +0100 Subject: [PATCH] fix: workflows and tests --- .github/FUNDING.yml | 2 ++ .github/workflows/checks.yml | 7 ------- .github/workflows/publish.yml | 17 +++++++++++++++++ deno.json | 2 +- test_import_map.json | 5 +++++ 5 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/publish.yml create mode 100644 test_import_map.json diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8f7e379 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +open_collective: denosaurs +github: denosaurs diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8307edc..e09b1c5 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,13 +10,6 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: Install stable deno uses: denoland/setup-deno@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ebf40ee --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1 + - run: deno publish diff --git a/deno.json b/deno.json index e57e989..084c862 100644 --- a/deno.json +++ b/deno.json @@ -8,7 +8,7 @@ "fmt": "deno fmt", "fmt:check": "deno fmt --check", "lint": "deno lint", - "test:doc": "deno test -A --unstable-ffi --doc", + "test:doc": "deno test -A --unstable-ffi --doc --import-map test_import_map.json", "build": "deno run -A script/build.ts", "run": "deno task build && export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi", "run:fast": "export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi" diff --git a/test_import_map.json b/test_import_map.json new file mode 100644 index 0000000..cdefc30 --- /dev/null +++ b/test_import_map.json @@ -0,0 +1,5 @@ +{ + "imports": { + "@webview/webview": "./mod.ts" + } +}