Skip to content

Commit 33fa59a

Browse files
authored
Merge pull request #10 from solrevdev/copilot/fix-9
Complete implementation of Issue #9: Multi-template system with comprehensive CLI features, cross-platform testing, project-specific configuration files, OS-specific git integration, and markdown as default template
2 parents bfaf1f6 + 9bae16e commit 33fa59a

28 files changed

Lines changed: 2074 additions & 131 deletions

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ on:
2222
jobs:
2323
build:
2424
if: github.event_name == 'push' && contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
25-
runs-on: windows-latest
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, windows-latest, macos-latest]
28+
dotnet: ['8.0.x', '9.0.x']
29+
runs-on: ${{ matrix.os }}
2630
env:
2731
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2832
DOTNET_CLI_TELEMETRY_OPTOUT: 1
@@ -39,23 +43,30 @@ jobs:
3943
- name: setup .net core sdk
4044
uses: actions/setup-dotnet@v4
4145
with:
42-
dotnet-version: |
43-
8.0.x
44-
9.0.x
46+
dotnet-version: ${{ matrix.dotnet }}
4547

4648
- name: dotnet build
4749
run: dotnet build solrevdev.seedfolder.sln --configuration Release
4850

51+
- name: run integration tests (linux/mac)
52+
if: matrix.os != 'windows-latest'
53+
run: ./tests/integration-test.sh
54+
55+
- name: run integration tests (windows)
56+
if: matrix.os == 'windows-latest'
57+
run: powershell -File tests/integration-test.ps1
58+
4959
- name: dotnet pack
5060
run: dotnet pack solrevdev.seedfolder.sln -c Release --no-build --include-source --include-symbols
5161

5262
- name: setup nuget
53-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
63+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.dotnet == '8.0.x'
5464
uses: nuget/setup-nuget@v1
5565
with:
5666
nuget-version: latest
5767

5868
- name: Publish NuGet
69+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.dotnet == '8.0.x'
5970
uses: rohith/publish-nuget@v2.1.1
6071
with:
6172
PROJECT_FILE_PATH: src/solrevdev.seedfolder.csproj # Relative to repository root

0 commit comments

Comments
 (0)