chore: add .gitattributes to enforce LF line endings repo-wide #166
Workflow file for this run
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: prompty CSharp build and test | |
| on: | |
| pull_request: | |
| paths: | |
| - 'runtime/csharp/**' | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| jobs: | |
| prompty-tests: | |
| name: run unit tests on supported .net versions | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| dotnet-version: [ '9.0.x' ] | |
| os: [ubuntu-latest, macOS-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup dotnet ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: dotnet restore | |
| working-directory: ./runtime/csharp | |
| run: dotnet restore | |
| - name: dotnet build | |
| working-directory: ./runtime/csharp | |
| run: dotnet build --nologo | |
| - name: dotnet format check | |
| working-directory: ./runtime/csharp | |
| run: dotnet format --verify-no-changes --verbosity minimal | |
| - name: dotnet test | |
| working-directory: ./runtime/csharp | |
| run: dotnet test --nologo --logger "console;verbosity=normal" |