File tree 1 file changed +16
-4
lines changed
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
3
3
on : [pull_request]
4
4
5
5
jobs :
6
- source-generator-test :
7
-
6
+ source-generator-build-pack-test :
8
7
runs-on : ubuntu-latest
9
8
10
9
steps :
22
21
with :
23
22
dotnet-version : 5.0.x
24
23
- 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
26
27
- 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() }}
28
40
- name : Test
29
41
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"
30
42
- name : Upload test results
You can’t perform that action at this time.
0 commit comments