Merge pull request #778 from codemonkey85/claude/issue-777-20260424-0349 #1730
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: Build and Test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ dev ] | |
| paths-ignore: | |
| - "**.md" | |
| - "**.ps1" | |
| - ".editorconfig" | |
| - "TestFiles/*" | |
| - '**/*.gitignore' | |
| - '**/*.gitattributes' | |
| - '**/*.yml' | |
| pull_request: | |
| branches: [ main ] | |
| types: [opened, synchronize, reopened, ready_for_review] # Also run when PR is marked ready for review | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'push' || github.event.pull_request == null # Prevents duplicate runs | |
| steps: | |
| # uses GitHub's checkout action to checkout code form the release branch | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| # sets up .NET SDK | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| global-json-file: ./global.json | |
| - name: Install WASM workload | |
| run: dotnet workload install wasm-tools | |
| - name: Restore dependencies | |
| run: dotnet restore Pkmds.Web/Pkmds.Web.csproj -p:SelfContained=true | |
| - name: Build Web | |
| run: dotnet build Pkmds.Web/Pkmds.Web.csproj --configuration Release --no-restore | |
| - name: Build Functions | |
| run: dotnet build Pkmds.Functions/Pkmds.Functions.csproj --configuration Release | |
| - name: Run tests | |
| run: dotnet test --configuration Release --no-build |