Skip to content

Commit

Permalink
chore(sonar): configure sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrFLEURY committed Sep 10, 2024
1 parent e38eb68 commit 730dda6
Show file tree
Hide file tree
Showing 7 changed files with 570 additions and 134 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/test_&_build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
on: pull_request
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]

name: Test and build
jobs:
admin-front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v3
with:
node-version: 18
Expand All @@ -14,3 +22,16 @@ jobs:
npm run build
npm run lint
npm run format:check
npm run coverage
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# We do not recommend to use this in a pull request. Prefer using pull request
# decoration instead.
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
build
coverage
.github
Loading

0 comments on commit 730dda6

Please sign in to comment.