Skip to content

Commit

Permalink
Merge pull request #61 from ssylver93/feature/WFPREV-34_3
Browse files Browse the repository at this point in the history
Try with sonarcloud-github-action
  • Loading branch information
ssylver93 authored Sep 18, 2024
2 parents bf97b49 + bbe4925 commit 077e005
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 43 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- main
pull_request_target:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/[email protected] # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/sonarscan.yml

This file was deleted.

1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sonar.organization=bcgov-sonarcloud
sonar.projectKey=bcgov_nr-bcws-wfprev
sonar.host.url=https://sonarcloud.io
sonar.sources=.

# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
Expand Down

0 comments on commit 077e005

Please sign in to comment.