From 00d43e48cb56aa7f6ccdb665f9276bbc2d2597ae Mon Sep 17 00:00:00 2001 From: petruki <31597636+petruki@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:57:18 -0800 Subject: [PATCH] chore: Bump test deps, added Deno 2.x to test stage --- .github/workflows/master.yml | 9 +++----- .github/workflows/staging.yml | 2 +- deno.lock | 42 +++++++++++++++++++++-------------- sonar-project.properties | 2 +- test/deps.ts | 2 +- 5 files changed, 31 insertions(+), 26 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 6241973..8b9e03c 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -18,10 +18,10 @@ jobs: with: fetch-depth: 0 - - name: Setup Deno v1.46.2 + - name: Setup Deno v2.x uses: denoland/setup-deno@v1 with: - deno-version: v1.46.2 + deno-version: v2.x - name: Setup LCOV run: sudo apt install -y lcov @@ -35,11 +35,8 @@ jobs: - name: Run tests and coverage run: deno task cover - - name: Fix LCOV output for SonarCloud - run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/report.lcov - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master + uses: sonarsource/sonarqube-scan-action@v4.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 746822e..b659f14 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -7,7 +7,7 @@ on: deno: description: 'Deno version' required: true - default: 'v1.46.x' + default: 'v2.x' os: description: 'Operating System (ubuntu-20.04, ubuntu-latest, windows-latest)' required: true diff --git a/deno.lock b/deno.lock index e79fb22..61a6b37 100644 --- a/deno.lock +++ b/deno.lock @@ -1,21 +1,29 @@ { - "version": "3", - "packages": { - "specifiers": { - "jsr:@std/assert@1.0.3": "jsr:@std/assert@1.0.3", - "jsr:@std/internal@^1.0.2": "jsr:@std/internal@1.0.2" + "version": "4", + "specifiers": { + "jsr:@std/assert@1.0.3": "1.0.3", + "jsr:@std/assert@1.0.9": "1.0.9", + "jsr:@std/internal@^1.0.2": "1.0.2", + "jsr:@std/internal@^1.0.5": "1.0.5" + }, + "jsr": { + "@std/assert@1.0.3": { + "integrity": "b0d03ce1ced880df67132eea140623010d415848df66f6aa5df76507ca7c26d8", + "dependencies": [ + "jsr:@std/internal@^1.0.2" + ] + }, + "@std/assert@1.0.9": { + "integrity": "a9f0c611a869cc791b26f523eec54c7e187aab7932c2c8e8bea0622d13680dcd", + "dependencies": [ + "jsr:@std/internal@^1.0.5" + ] }, - "jsr": { - "@std/assert@1.0.3": { - "integrity": "b0d03ce1ced880df67132eea140623010d415848df66f6aa5df76507ca7c26d8", - "dependencies": [ - "jsr:@std/internal@^1.0.2" - ] - }, - "@std/internal@1.0.2": { - "integrity": "f4cabe2021352e8bfc24e6569700df87bf070914fc38d4b23eddd20108ac4495" - } + "@std/internal@1.0.2": { + "integrity": "f4cabe2021352e8bfc24e6569700df87bf070914fc38d4b23eddd20108ac4495" + }, + "@std/internal@1.0.5": { + "integrity": "54a546004f769c1ac9e025abd15a76b6671ddc9687e2313b67376125650dc7ba" } - }, - "remote": {} + } } diff --git a/sonar-project.properties b/sonar-project.properties index 8bf8c08..f491598 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,7 +10,7 @@ sonar.tests=test sonar.language=typescript sonar.dynamicAnalysis=reuseReports -sonar.exclusions=example/** +sonar.exclusions=mod.ts,example/** # Ignore invalid rule for Deno tests sonar.issue.ignore.multicriteria=e1 diff --git a/test/deps.ts b/test/deps.ts index ab5a638..10b6015 100644 --- a/test/deps.ts +++ b/test/deps.ts @@ -1 +1 @@ -export { assertEquals, assertNotEquals, assertThrows } from 'jsr:@std/assert@1.0.3'; +export { assertEquals, assertNotEquals, assertThrows } from 'jsr:@std/assert@1.0.9';