Skip to content

Commit

Permalink
Fixed path in GitHub workflows to account for folder structure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
disouzam committed Dec 20, 2024
1 parent 7142aff commit 9bec618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/setup-ci-cd_my-finance-web-app-mvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./myfinance-web-wo-top-level-statement
working-directory: ./

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sonarqube-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ jobs:
id: cache-sonar-scanner
uses: actions/cache@v4
with:
path: myfinance-web-wo-top-level-statement\.sonar\scanner
path: .sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner

- name: Install SonarQube Cloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
cd myfinance-web-wo-top-level-statement
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
Expand All @@ -50,7 +49,6 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
cd myfinance-web-wo-top-level-statement
.\.sonar\scanner\dotnet-sonarscanner begin /k:"dickson-souza-projects_myfinance-web-dotnet" /o:"dickson-souza-projects-sonarqube-cloud" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit 9bec618

Please sign in to comment.