* change the hardcoded input dotnet-version
of `actions/setup-dotne…
#24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: c# | |
on: | |
push: | |
paths: [c#/**] | |
defaults: | |
run: | |
working-directory: c# | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: [crawler, imagePipeline, shared, tbClient] | |
env: | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/c# | |
- run: dotnet build --no-restore -c Debug ${{ matrix.project }} | |
ReSharper: | |
runs-on: ubuntu-latest | |
env: | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/c# | |
- run: dotnet tool run jb inspectcode --build -f=sarif -o=ReSharper.sarif.json tbm.sln | |
- uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: c#/ReSharper.sarif.json |