Update 02_Getting_Started_Unity.md #18
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: .NET Build & Test for FSM_API | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: 🛠️ Build & Test FSM_API (.NET Core) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: [ "8.0.x", "7.0.x" ] # Expand as needed | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: 🧰 Setup .NET SDK ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: 📦 Restore dependencies | |
| run: dotnet restore | |
| - name: 🔨 Build solution | |
| run: dotnet build FSM_API.sln --no-restore --configuration Release | |
| - name: 🧪 Run unit tests | |
| run: dotnet test FSM_API.sln --no-build --configuration Release --verbosity normal | |
| env: | |
| DOTNET_ENVIRONMENT: "CI" | |
| - name: ✅ Done! | |
| run: echo "🎉 Build & tests completed on .NET ${{ matrix.dotnet-version }}" |