Skip to content

Commit d872a7e

Browse files
author
Ganesh Jangir
committed
^ This is a combination of 3 commits.
^ This is the 1st commit message: ci: update CI to generate nuget package ^ The commit message #2 will be skipped: ^ oh git ^ The commit message #3 will be skipped: ^ rename artifact
1 parent 3655a30 commit d872a7e

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/source-generator-ci.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Source Generator CI
33
on: [pull_request]
44

55
jobs:
6-
source-generator-test:
7-
6+
source-generator-build-pack-test:
87
runs-on: ubuntu-latest
98

109
steps:
@@ -22,9 +21,22 @@ jobs:
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

0 commit comments

Comments
 (0)