-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from fhswf/sonarqube
fix: sonarqube issues
- Loading branch information
Showing
28 changed files
with
532 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
# Feel free to take a look at our documentation (https://docs.sonarqube.org/latest/analysis/github-integration/) | ||
# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/sq/10) | ||
|
||
name: SonarQube analysis | ||
name: Test & SonarQube analysis | ||
|
||
on: | ||
push: | ||
|
@@ -39,14 +39,41 @@ permissions: | |
jobs: | ||
Analysis: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
- name: Analyze with SonarQube | ||
|
||
# Install package dependencies | ||
- name: Install | ||
run: yarn install --immutable | ||
|
||
# Build | ||
- name: Build | ||
run: yarn workspace common build | ||
|
||
# Run tests | ||
- name: Test | ||
run: yarn run ci | ||
|
||
- name: Post PR Comment | ||
run: npx github-actions-ctrf ctrf/ctrf-report.json --pr-comment | ||
if: always() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Upload Cypress screenshots | ||
path: client/cypress/screenshots | ||
overwrite: true | ||
|
||
- name: Analyze with SonarQube | ||
if: always() | ||
# You can pin the exact commit or the version. | ||
# uses: SonarSource/[email protected] | ||
uses: sonarsource/sonarqube-scan-action@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ sonar-scanner-5.0.1.3006-linux/** | |
|
||
|
||
*/TEST-*.xml | ||
*/*-ctrf.json | ||
**/ctrf/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import { defineConfig } from 'cypress' | ||
import { GenerateCtrfReport } from 'cypress-ctrf-json-reporter' | ||
|
||
const PORT = process.env.PORT || 3000; | ||
const PORT = process.env.PORT || 5173; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: `http://localhost:${PORT}/meeting`, | ||
video: true, | ||
projectId: "pjkkoc" | ||
e2e: { | ||
baseUrl: `http://localhost:${PORT}`, | ||
video: true, | ||
projectId: "pjkkoc", | ||
setupNodeEvents(on, config) { | ||
// Implement node event listeners here | ||
new GenerateCtrfReport({ | ||
on, | ||
outputFile: 'client-report.json', | ||
outputDir: '../ctrf', | ||
}) | ||
}, | ||
}) | ||
}, | ||
}) |
Oops, something went wrong.