# This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net name: dotnet-ci on: pull_request: branches: [ "main" ] paths: - 'dotnet/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} permissions: contents: read jobs: build: name: CI runs-on: ubuntu-latest defaults: run: working-directory: dotnet steps: - uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v3 with: global-json-file: global.json - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --no-restore - name: Unit Test run: dotnet test --no-build --verbosity normal