Skip to content

Commit

Permalink
chore: Bump test deps, added Deno 2.x to test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
petruki committed Dec 15, 2024
1 parent a9eb6ca commit 00d43e4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
42 changes: 25 additions & 17 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { assertEquals, assertNotEquals, assertThrows } from 'jsr:@std/[email protected].3';
export { assertEquals, assertNotEquals, assertThrows } from 'jsr:@std/[email protected].9';

0 comments on commit 00d43e4

Please sign in to comment.