File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ name: Source Generator CI
33on : [pull_request]
44
55jobs :
6- source-generator-test :
7-
6+ source-generator-build-pack-test :
87 runs-on : ubuntu-latest
98
109 steps :
2221 with :
2322 dotnet-version : 5.0.x
2423 - name : Restore dependencies
25- run : dotnet restore Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Amazon.Lambda.Annotations.SourceGenerators.Tests.csproj
24+ run : |
25+ dotnet restore Libraries/src/Amazon.Lambda.Annotations/Amazon.Lambda.Annotations.csproj
26+ dotnet restore Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Amazon.Lambda.Annotations.SourceGenerators.Tests.csproj
2627 - name : Build
27- run : dotnet build Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Amazon.Lambda.Annotations.SourceGenerators.Tests.csproj --no-restore
28+ run : |
29+ dotnet build Libraries/src/Amazon.Lambda.Annotations/Amazon.Lambda.Annotations.csproj --no-restore
30+ dotnet build Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Amazon.Lambda.Annotations.SourceGenerators.Tests.csproj --no-restore
31+ - name : Pack
32+ run : dotnet pack Libraries/src/Amazon.Lambda.Annotations/Amazon.Lambda.Annotations.csproj -p:NuspecFile=../Amazon.Lambda.Annotations.nuspec --no-build --output "PackResults"
33+ - name : Upload pack results
34+ uses : actions/upload-artifact@v2
35+ with :
36+ name : source-generator-nuget-package
37+ path : PackResults
38+ # Use always() to always run this step to publish test results when there are test failures
39+ if : ${{ always() }}
2840 - name : Test
2941 run : dotnet test Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Amazon.Lambda.Annotations.SourceGenerators.Tests.csproj --no-build --verbosity normal --logger trx --results-directory "TestResults"
3042 - name : Upload test results
You can’t perform that action at this time.
0 commit comments