diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ddc59ee..3d5cae0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,6 @@ jobs: uses: denoland/setup-deno@v1 with: deno-version: v2.x - + - name: Publish package run: deno publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fdfd9d6..a86bac4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -on: +on: push: branches: [main, dev] pull_request: @@ -20,4 +20,4 @@ jobs: with: test_target: "*.test.ts" jsr_dependencies: "@std/assert @std/async @cross/runtime" - npm_dependencies: "sinon" \ No newline at end of file + npm_dependencies: "sinon" diff --git a/README.md b/README.md index b092826..bc96976 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: antongolub/action-setup-bun@v1.12.8 + - uses: antongolub/action-setup-bun@v1.12.8 with: bun-version: v1.x # Uses latest bun 1 - run: bun x jsr add @cross/test @std/assert # Installs dependencies @@ -108,9 +108,9 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x # Uses latest deno version 1 + deno-version: v1.x # Uses latest deno version 1 - run: deno add @cross/test @std/assert # Installs dependencies from jsr.io - - run: deno test # Runs tests + - run: deno test # Runs tests ``` - **Node (GitHub actions):** @@ -120,13 +120,12 @@ name: Node.js CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: - runs-on: ubuntu-latest strategy: diff --git a/deno.json b/deno.json index e1cb517..f127ace 100644 --- a/deno.json +++ b/deno.json @@ -5,7 +5,12 @@ "fmt": { "lineWidth": 200 }, - "imports": { "@cross/runtime": "jsr:@cross/runtime@^1.0.0", "@std/assert": "jsr:@std/assert@^0.226.0", "@std/async": "jsr:@std/async@^0.224.2", "sinon": "npm:sinon@^18.0.0" }, + "imports": { + "@cross/runtime": "jsr:@cross/runtime@~1.0.0", + "@std/assert": "jsr:@std/assert@~1.0.8", + "@std/async": "jsr:@std/async@~1.0.9", + "sinon": "npm:sinon@~19.0.2" + }, "publish": { "exclude": [".github", "*.test.ts"] }