chore: project rename #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build SDK | |
| run: dotnet build src/CodingWithCalvin.VsixSdk/CodingWithCalvin.VsixSdk.csproj -c Release --no-restore | |
| - name: Build Templates | |
| run: dotnet pack src/CodingWithCalvin.VsixSdk.Templates/CodingWithCalvin.VsixSdk.Templates.csproj -c Release --no-restore | |
| - name: Build Sample Extension | |
| run: dotnet build samples/SampleExtension/SampleExtension.csproj -c Release | |
| - name: Test Template - Install | |
| run: dotnet new install artifacts/packages/CodingWithCalvin.VsixSdk.Templates.1.0.0.nupkg | |
| - name: Test Template - Create Project | |
| run: | | |
| mkdir test-template | |
| cd test-template | |
| dotnet new vsix -n TestExtension --publisher "CI Test" | |
| - name: Test Template - Build Project | |
| run: dotnet build test-template/TestExtension/TestExtension.csproj -c Release | |
| - name: Test Template - Uninstall | |
| run: dotnet new uninstall CodingWithCalvin.VsixSdk.Templates | |
| - name: Upload SDK Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdk-package | |
| path: artifacts/packages/CodingWithCalvin.VsixSdk.*.nupkg | |
| - name: Upload Templates Package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: templates-package | |
| path: artifacts/packages/CodingWithCalvin.VsixSdk.Templates.*.nupkg |