From 43205906082600c31cf4e4db7a82fd59738c6f4a Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 01:52:44 -0500 Subject: [PATCH 01/24] Update mathUtils.test.js --- app/utils/mathUtils.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/utils/mathUtils.test.js b/app/utils/mathUtils.test.js index 1345f9b..760c6fb 100644 --- a/app/utils/mathUtils.test.js +++ b/app/utils/mathUtils.test.js @@ -6,9 +6,6 @@ test('square function', () => { expect(square(-3)).toBe(9); }); -test('cube function', () => { - expect(cube(2)).toBe(8); - expect(cube(-3)).toBe(-27); -}); + // Intentionally leave factorial untested for now From 41d5fd5fbcc6dbd5b8a4f3720bc3337d1767630f Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 01:58:35 -0500 Subject: [PATCH 02/24] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65f7707..5c2a44f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch the entire Git history - name: Setup Node.js uses: actions/setup-node@v3 From 1980951ccceb0ceb5e2b34f49d7d851f8c1c5d55 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:21:44 -0500 Subject: [PATCH 03/24] Update calculator.test.js --- app/core/calculator.test.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/core/calculator.test.js b/app/core/calculator.test.js index 53b897f..8a60c8e 100644 --- a/app/core/calculator.test.js +++ b/app/core/calculator.test.js @@ -13,6 +13,7 @@ test('add function', () => { expect(add(0, 2.0)).toBe(2.0); expect(add(2.0, 0)).toBe(2.0); expect(add(-4, 2.0)).toBe(-2.0); + expect(add(1e+100, 1e+100)).toBe(2e+100); // Large number addition }); test('subtract function', () => { @@ -22,8 +23,28 @@ test('subtract function', () => { expect(subtract(0, 2.0)).toBe(-2.0); expect(subtract(2.0, 0)).toBe(2.0); expect(subtract(-4, 2.0)).toBe(-6.0); + expect(subtract(1e+100, 1e+100)).toBe(0); // Large number subtraction }); test('multiply function', () => { expect(multiply(1, 2)).toBe(2); + expect(multiply(2, 0)).toBe(0); + expect(multiply(-2, 3)).toBe(-6); + expect(multiply(0.5, 2)).toBe(1); // Floating point multiplication + expect(multiply(1000, 1000)).toBe(1000000); // Large number multiplication +}); + +test('divide function', () => { + expect(divide(10, 2)).toBe(5); + expect(divide(1, 0)).toBe("Cannot divide by 0"); // Divide by zero case + expect(divide(-10, 2)).toBe(-5); + expect(divide(10, -2)).toBe(-5); + expect(divide(1000, 1000)).toBe(1); // Large number division + expect(divide(5, "a")).toThrow(); // Invalid division input +}); + +test('floating-point operations', () => { + expect(add(0.1, 0.2)).toBeCloseTo(0.3, 5); // Floating point precision + expect(subtract(0.3, 0.1)).toBeCloseTo(0.2, 5); // Floating point subtraction + expect(multiply(0.1, 0.2)).toBeCloseTo(0.02, 5); // Floating point multiplication }); From d8be14daa330d5a5ea88234c7b085c1a75a2cc38 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:22:07 -0500 Subject: [PATCH 04/24] Update mathUtils.test.js --- app/utils/mathUtils.test.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/utils/mathUtils.test.js b/app/utils/mathUtils.test.js index 760c6fb..2963dd2 100644 --- a/app/utils/mathUtils.test.js +++ b/app/utils/mathUtils.test.js @@ -4,8 +4,21 @@ import { square, cube, factorial } from './mathUtils'; test('square function', () => { expect(square(2)).toBe(4); expect(square(-3)).toBe(9); + expect(square(0)).toBe(0); + expect(square(1000)).toBe(1000000); // Large number }); +test('cube function', () => { + expect(cube(2)).toBe(8); + expect(cube(-3)).toBe(-27); + expect(cube(0)).toBe(0); + expect(cube(1000)).toBe(1000000000); // Large number +}); - -// Intentionally leave factorial untested for now +test('factorial function', () => { + expect(factorial(0)).toBe(1); // Factorial of 0 is 1 + expect(factorial(1)).toBe(1); // Factorial of 1 is 1 + expect(factorial(5)).toBe(120); // Factorial of 5 is 120 + expect(factorial(6)).toBe(720); // Factorial of 6 is 720 + expect(() => factorial(-1)).toThrow(); // Negative factorial should throw an error +}); From 3ab371b37f05ef2d15845bd3c873b7249931b707 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:26:18 -0500 Subject: [PATCH 05/24] Update calculator.test.js --- app/core/calculator.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/core/calculator.test.js b/app/core/calculator.test.js index 8a60c8e..7560167 100644 --- a/app/core/calculator.test.js +++ b/app/core/calculator.test.js @@ -43,6 +43,14 @@ test('divide function', () => { expect(divide(5, "a")).toThrow(); // Invalid division input }); +test('divide2 function', () => { + expect(divide(10, 2)).toBe(5); // Valid division + expect(divide(1, 0)).toBe("Cannot divide by 0"); // This tests the divide by zero scenario + expect(divide(-10, 2)).toBe(-5); // Negative division + expect(divide(10, -2)).toBe(-5); // Negative division with swapped operands +}); + + test('floating-point operations', () => { expect(add(0.1, 0.2)).toBeCloseTo(0.3, 5); // Floating point precision expect(subtract(0.3, 0.1)).toBeCloseTo(0.2, 5); // Floating point subtraction From 81f109e8ed04cd29fafe9bc4eac9585ad0664a69 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:32:32 -0500 Subject: [PATCH 06/24] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c2a44f..e1edd9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,8 @@ jobs: -Dsonar.sources=app \ -Dsonar.organization=nofarb \ -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ - -Dsonar.host.url=${{ vars.SONAR_HOST_URL }} + -Dsonar.host.url=${{ vars.SONAR_HOST_URL }} \ + -Dsonar.coverageReportPaths=coverage/lcov-report/index.html env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} From 0c7c727e3b8c6fdee678a704441c9a100d13e374 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:37:43 -0500 Subject: [PATCH 07/24] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1edd9d..55dfd13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: -Dsonar.organization=nofarb \ -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ -Dsonar.host.url=${{ vars.SONAR_HOST_URL }} \ - -Dsonar.coverageReportPaths=coverage/lcov-report/index.html + -Dsonar.coverageReportPaths=coverage/lcov-report/lcov-report.xml env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} From 3efeeb9ad590fcdf525802f2e12f5ff000ba7ff6 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:43:27 -0500 Subject: [PATCH 08/24] Update ci.yml --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55dfd13..8d1a7aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,10 +69,14 @@ jobs: # run: npm run build - name: Run tests with coverage - run: npm run test || true + run: npm run test --coverage - name: List coverage files (debugging) - run: ls -R coverage + run: | + ls -R coverage + find . -type f -name "*coverage*" + find . -type f -name "*.json" + find . -type f -name "*.lcov*" - name: Upload code coverage to Codecov uses: codecov/codecov-action@v5 From 9385957cae496b74c9850d2cf6a7bc8c4b63011b Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:45:13 -0500 Subject: [PATCH 09/24] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d1a7aa..afd3b38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: # run: npm run build - name: Run tests with coverage - run: npm run test --coverage + run: npm run test --coverage || true - name: List coverage files (debugging) run: | From 3c077ca0a4adca17f61bbc11ed91d96503286936 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:47:38 -0500 Subject: [PATCH 10/24] Update vite.config.js --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 686dd68..1318803 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ export default defineConfig({ include: ['app/**/*.test.js'], coverage: { provider: 'v8', - reporters: ['lcov', 'text', 'json', 'html'], + reporters: ['lcov', 'text', 'json', 'html', 'cobertura'], reportDir: 'coverage' } } From 2a92786efa3fe20f9e012b11cf113a12bc665939 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:50:12 -0500 Subject: [PATCH 11/24] Update vite.config.js --- vite.config.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/vite.config.js b/vite.config.js index 1318803..6d248dd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,15 +1,12 @@ -import { defineConfig } from 'vitest/config' -import { defineConfig } from "vite"; - +import { defineConfig } from 'vitest/config'; // Import Vitest config export default defineConfig({ test: { - include: ['app/**/*.test.js'], + include: ['app/**/*.test.js'], // Path to test files coverage: { - provider: 'v8', - reporters: ['lcov', 'text', 'json', 'html', 'cobertura'], - reportDir: 'coverage' - } + provider: 'v8', // Using v8 coverage provider for modern JavaScript + reporters: ['lcov', 'text', 'json', 'html', 'cobertura'], // Output coverage formats + reportDir: 'coverage/lcov-report', // Directory for coverage reports + }, } -}) - +}); From 9b27407e41dc21f978def42e0872fc92c213f570 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:50:38 -0500 Subject: [PATCH 12/24] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afd3b38..2eb06e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,7 @@ jobs: - name: List coverage files (debugging) run: | ls -R coverage + ls -R coverage/lcov-report find . -type f -name "*coverage*" find . -type f -name "*.json" find . -type f -name "*.lcov*" From 575b7ab06ab729a8ce4fd74276aea9dc77980f3d Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:53:51 -0500 Subject: [PATCH 13/24] Update ci.yml --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2eb06e2..b689ece 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,13 +36,13 @@ jobs: test: { include: ['app/**/*.test.js'], coverage: { - provider: 'v8', - reporters: ['text', 'json', 'html', 'lcov'], - reportDir: 'coverage' + provider: 'v8', # Use the V8 coverage provider for modern JS + reporters: ['lcov', 'text', 'json', 'html', 'cobertura'], # Formats for coverage output + reportDir: 'coverage/lcov-report' # Ensure coverage reports go to the lcov-report directory }, reporters: [ 'default', - ['junit', { outputFile: 'junit.xml' }] + ['junit', { outputFile: 'junit.xml' }] # Optional: For CI compatibility, include JUnit output ] } })" > vitest.config.ts From 8b51c09bff0e0fe54d19871db8b7c86fbfddd02b Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 02:57:31 -0500 Subject: [PATCH 14/24] Update ci.yml --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b689ece..18c08a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,8 @@ jobs: include: ['app/**/*.test.js'], coverage: { provider: 'v8', # Use the V8 coverage provider for modern JS - reporters: ['lcov', 'text', 'json', 'html', 'cobertura'], # Formats for coverage output - reportDir: 'coverage/lcov-report' # Ensure coverage reports go to the lcov-report directory + reporters: ['lcov', 'text', 'json', 'html'], # Formats for coverage output + reportDir: 'coverage/' # Ensure coverage reports go to the lcov-report directory }, reporters: [ 'default', @@ -47,6 +47,7 @@ jobs: } })" > vitest.config.ts + # Uncomment this block if you eventually want bundle analysis enabled again: # # - name: Create vite.config.js (for Codecov Bundle Analysis) From 032c6ff0652c19cb64c902a2d8b231b1c6a796b7 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:00:53 -0500 Subject: [PATCH 15/24] Update ci.yml --- .github/workflows/ci.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18c08a5..0b2bc24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,35 +17,6 @@ jobs: with: node-version: 18 - - name: Initialize clean package.json - run: | - npm init -y - npm install vitest@1.6.1 @vitest/coverage-v8@1.6.1 - # Optional: only install Codecov bundle plugin if you want bundle analysis: - # npm install @codecov/vite-plugin@latest - - - name: Add test & build scripts manually - run: | - jq '.scripts.test="vitest run --coverage"' package.json > tmp.json && mv tmp.json package.json - jq '.scripts.build="vite build"' package.json > tmp.json && mv tmp.json package.json - - - name: Create vitest.config.ts - run: | - echo "import { defineConfig } from 'vitest/config' - export default defineConfig({ - test: { - include: ['app/**/*.test.js'], - coverage: { - provider: 'v8', # Use the V8 coverage provider for modern JS - reporters: ['lcov', 'text', 'json', 'html'], # Formats for coverage output - reportDir: 'coverage/' # Ensure coverage reports go to the lcov-report directory - }, - reporters: [ - 'default', - ['junit', { outputFile: 'junit.xml' }] # Optional: For CI compatibility, include JUnit output - ] - } - })" > vitest.config.ts # Uncomment this block if you eventually want bundle analysis enabled again: From 928bb2a451e04bd42ffdf40b4a11c77ac49f4630 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:02:47 -0500 Subject: [PATCH 16/24] Update package.json --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4bf8be1..3a7b637 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ + + + { - "name": "example-javascript", - "version": "1.0.0", "scripts": { - "test": "vitest run --coverage" + "test": "vitest run --coverage", + "build": "vite build" }, "dependencies": { - "vitest": "1.6.1" - }, - "devDependencies": { - "@vitest/coverage-v8": "1.6.1" + "vitest": "1.6.1", + "@vitest/coverage-v8": "1.6.1", + "vite": "your-vite-version-here" } } From 9f0a977f88ebd3c44d1b49449b00320b831229e2 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:05:01 -0500 Subject: [PATCH 17/24] Update ci.yml --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b2bc24..fa97693 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,15 @@ jobs: with: node-version: 18 + - name: Install dependencies + run: npm install + + + - name: Verify Vitest installation + run: | + echo "Checking Vitest installation..." + which vitest || echo "Vitest not found!" # Check if Vitest is installed + npm list vitest # List the Vitest package to verify installation # Uncomment this block if you eventually want bundle analysis enabled again: From 8ed18ecc7718af582169b91876d353accbd1ccc7 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:07:01 -0500 Subject: [PATCH 18/24] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa97693..504da96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,14 +52,14 @@ jobs: - name: Run tests with coverage run: npm run test --coverage || true - - name: List coverage files (debugging) + - name: List all files recursively (debugging step) run: | ls -R coverage - ls -R coverage/lcov-report find . -type f -name "*coverage*" find . -type f -name "*.json" find . -type f -name "*.lcov*" + - name: Upload code coverage to Codecov uses: codecov/codecov-action@v5 env: From 1d710160973a1b439254a4279d5e235eaf98b2ea Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:13:12 -0500 Subject: [PATCH 19/24] Update ci.yml --- .github/workflows/ci.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 504da96..5ebf1ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,18 +71,7 @@ jobs: with: token: ${{ secrets.CODECOV_ORG_TOKEN }} - - name: Install SonarQube scanner - run: npm install -g sonarqube-scanner - - - name: Run SonarQube scanner - run: | - sonar-scanner \ - -Dsonar.projectKey=nofarb_example-javascript \ - -Dsonar.sources=app \ - -Dsonar.organization=nofarb \ - -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ - -Dsonar.host.url=${{ vars.SONAR_HOST_URL }} \ - -Dsonar.coverageReportPaths=coverage/lcov-report/lcov-report.xml + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} From ab6ce5636f7306117e6c7cf11333a7ebab9faa11 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:18:45 -0500 Subject: [PATCH 20/24] Update ci.yml --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ebf1ee..de1c058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,12 @@ jobs: with: token: ${{ secrets.CODECOV_ORG_TOKEN }} - - name: SonarQube Scan + - name: Run SonarQube scanner uses: SonarSource/sonarqube-scan-action@v5 + with: + sonar-project-key: 'nofarb_example-javascript' # Replace with your project key + sonar-organization: 'nofarb' # Replace with your organization name + sonar-sources: 'app' # Path to your source code env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} From 7d3bc4aed7df03338d32b22c31359eb656686019 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:21:51 -0500 Subject: [PATCH 21/24] Update ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de1c058..e010283 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,4 +79,3 @@ jobs: sonar-sources: 'app' # Path to your source code env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} From d4304bb67c8a0c714c2bcf6f3dfbb3d7cfa05b95 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:23:59 -0500 Subject: [PATCH 22/24] Update ci.yml --- .github/workflows/ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e010283..09726cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,11 +71,4 @@ jobs: with: token: ${{ secrets.CODECOV_ORG_TOKEN }} - - name: Run SonarQube scanner - uses: SonarSource/sonarqube-scan-action@v5 - with: - sonar-project-key: 'nofarb_example-javascript' # Replace with your project key - sonar-organization: 'nofarb' # Replace with your organization name - sonar-sources: 'app' # Path to your source code - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + From 3127ffb5651778168c530fd93aa1512eb08cb17b Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:26:33 -0500 Subject: [PATCH 23/24] Create sonar-project.properties --- sonar-project.properties | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..f90ad3d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,14 @@ +sonar.projectKey=nofarb_example-javascript +sonar.organization=nofarb + + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=example-javascript +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 From f328f008edff3b480989c33e0f9698758d9a9070 Mon Sep 17 00:00:00 2001 From: nofarb Date: Fri, 13 Jun 2025 03:28:55 -0500 Subject: [PATCH 24/24] Update ci.yml --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09726cc..5044ada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,4 +71,8 @@ jobs: with: token: ${{ secrets.CODECOV_ORG_TOKEN }} + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}