File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Test
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ 'main', 'dev', 'feature/*' ]
7+ pull_request :
8+ branches : [ 'main', 'dev' ]
9+
10+ jobs :
11+ build-and-test :
12+ runs-on : ubuntu-latest
13+ env :
14+ solutionName : MarkdownDeep.sln
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : Setup .NET
18+ 19+ with :
20+ dotnet-version : 6.0.x
21+ - name : Initialize CodeQL
22+ uses : github/codeql-action/init@v2
23+ with :
24+ languages : csharp
25+ - name : Restore dependencies
26+ run : dotnet restore ${{ env.solutionName }}
27+ - name : Build
28+ run : dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false
29+ - name : Test
30+ run : dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
31+ - name : Perform CodeQL Analysis
32+ uses : github/codeql-action/analyze@v2
You can’t perform that action at this time.
0 commit comments