From ca930a0c0ad159fdfad7d6f099b3b14ad4f83eef Mon Sep 17 00:00:00 2001 From: Eric Thuaud Date: Tue, 5 Dec 2023 11:23:17 +0100 Subject: [PATCH] chore - add sonar workflow --- .github/workflows/sonar.yaml | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sonar.yaml diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml new file mode 100644 index 0000000..21479aa --- /dev/null +++ b/.github/workflows/sonar.yaml @@ -0,0 +1,21 @@ +name: Sonar analysis +on: + push: + branches: + - develop + - main + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + 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 }} \ No newline at end of file diff --git a/package.json b/package.json index 39e08db..aa06460 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "colempub", - "version": "1.0.0", + "version": "1.0.1", "dependencies": { "axios": "^0.19.2", "bootstrap": "^3.3.7",