Skip to content

Commit

Permalink
Add frontend analysis with sonar cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcell Dechant committed May 21, 2024
1 parent c0bd254 commit 6744b1a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/sonar-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Analyze Frontend
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sonar.projectKey=neuefische_java-curriculum-6-java-02-Fullstack-Project-frontend
sonar.organization=neuefische
sonar.sources=./frontend/src

0 comments on commit 6744b1a

Please sign in to comment.