Skip to content

Commit

Permalink
chore: Testing GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
VaclavElias committed Oct 5, 2024
1 parent 00170b5 commit 64199c2
Showing 1 changed file with 35 additions and 23 deletions.
58 changes: 35 additions & 23 deletions .github/workflows/stride-ndepend-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,45 @@ jobs:
run: |
Add-Content -Path Directory.Build.props -Value "<Project>"
Add-Content -Path Directory.Build.props -Value " <PropertyGroup>"
Add-Content -Path Directory.Build.props -Value " <ErrorLog>$(SolutionDir)\.sarif\$(MSBuildProjectName).json</ErrorLog>"
Add-Content -Path Directory.Build.props -Value " <ErrorLog>$$(SolutionDir)\.sarif\$$(MSBuildProjectName).json</ErrorLog>"
Add-Content -Path Directory.Build.props -Value " </PropertyGroup>"
Add-Content -Path Directory.Build.props -Value "</Project>"
- name: Build Stride.sln
run: msbuild build/Stride.build -t:Build
# run: dotnet build ${{ env.PROJECT_PATH_CORE }} --no-restore
- name: List folder content in the working directory
shell: powershell
run: Get-ChildItem

- name: NDepend
uses: ndepend/ndepend-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
license: ${{ secrets.NDependLicense }}
solution: ${{ env.PROJECT_PATH_CORE }}
baseline: recent
- name: List folder content in the build directory
shell: powershell
run: Get-ChildItem -Path build

- name: Prepare deployment files for GitHub Pages
- name: Display Directory.Build.props content
shell: powershell
run: |
New-Item -ItemType Directory -Force -Path ${{ env.DEPLOY_DIR }}
Copy-Item -Path ..\..\_temp\NDependOut\NDependReport.html -Destination ${{ env.DEPLOY_DIR }}\
Copy-Item -Path ..\..\_temp\NDependOut\NDependReportFiles -Destination ${{ env.DEPLOY_DIR }}\ -Recurse
run: Get-Content -Path Directory.Build.props

- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.DEPLOY_DIR }}
destination_dir: stride/ndepend
publish_branch: gh-pages
# - name: Build Stride.sln
# run: msbuild build/Stride.build -t:Build
# # run: dotnet build ${{ env.PROJECT_PATH_CORE }} --no-restore

# - name: NDepend
# uses: ndepend/ndepend-action@v1
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# license: ${{ secrets.NDependLicense }}
# solution: ${{ env.PROJECT_PATH_CORE }}
# baseline: recent

# - name: Prepare deployment files for GitHub Pages
# shell: powershell
# run: |
# New-Item -ItemType Directory -Force -Path ${{ env.DEPLOY_DIR }}
# Copy-Item -Path ..\..\_temp\NDependOut\NDependReport.html -Destination ${{ env.DEPLOY_DIR }}\
# Copy-Item -Path ..\..\_temp\NDependOut\NDependReportFiles -Destination ${{ env.DEPLOY_DIR }}\ -Recurse

# - name: Deploy to GitHub Pages
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ${{ env.DEPLOY_DIR }}
# destination_dir: stride/ndepend
# publish_branch: gh-pages

0 comments on commit 64199c2

Please sign in to comment.