Skip to content

Commit be5c553

Browse files
authored
Added msbuild build of project in buildtest action (#1022)
* Update buildtest.yaml * Update buildtest.yaml * Update buildtest.yaml * Update buildtest.yaml * Update buildtest.yaml * Update buildtest.yaml * Test broken version * Update buildtest.yaml * Restored working version * Test broken version * Restored working version
1 parent f615b5b commit be5c553

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/buildtest.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ jobs:
3636
# path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml
3737
# repo_token: ${{ secrets.GITHUB_TOKEN }}
3838
# minimum_coverage: 0
39+
40+
# Test code gen for visual studio compatibility >> https://github.com/kubernetes-client/csharp/pull/1008
41+
codgen:
42+
runs-on: windows-latest
43+
name: MSBuild build
44+
steps:
45+
- uses: actions/checkout@v3
46+
with:
47+
fetch-depth: 0
48+
- name: Add msbuild to PATH
49+
uses: microsoft/[email protected]
50+
- name: Setup dotnet SDK 6
51+
uses: actions/setup-dotnet@v2
52+
with:
53+
dotnet-version: '6.0.x'
54+
- name: Restore nugets (msbuild)
55+
run: msbuild .\src\KubernetesClient.Models\ -t:restore -p:RestorePackagesConfig=true
56+
- name: Build (msbuild)
57+
run: msbuild .\src\KubernetesClient.Models\
58+
3959
e2e:
4060
runs-on: ubuntu-latest
4161
steps:

0 commit comments

Comments
 (0)