name: API Compatibility on: pull_request: branches: [ 'main*' ] paths-ignore: - '**.md' jobs: build-test: runs-on: windows-latest env: CheckAPICompatibility: true # https://github.com/actions/setup-dotnet/issues/122 DOTNET_MULTILEVEL_LOOKUP: 1 steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # fetching all - uses: actions/setup-dotnet@v2 with: dotnet-version: '7.0.x' include-prerelease: true - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore