Skip to content

Msbuild unformatted files are no longer treated as error on linux #1341

Msbuild unformatted files are no longer treated as error on linux

Msbuild unformatted files are no longer treated as error on linux #1341

name: Validate Pull Request
on:
pull_request:
branches: [main]
jobs:
run_tests:
runs-on: ubuntu-latest
name: Run Tests
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
- run: >
dotnet test CSharpier.sln
--configuration Release
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--
RunConfiguration.CollectSourceInformation=true
check_formatting:
runs-on: ubuntu-latest
name: Check Formatting
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
- run: |
rm -r -f ./Tests/CSharpier.MsBuild.Test
dotnet tool restore
dotnet csharpier . --check
test_msbuild:
runs-on: ubuntu-latest
name: Test CSharpier.MSBuild
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
- run: |
pwsh ./Tests/MsBuild/Run.ps1
test_msbuild2:
runs-on: ubuntu-latest
name: Test CSharpier.MSBuild2
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
- working-directory: ./Tests/MsBuild
# I can't run this at all locally, it can't find the nuget package
# also locally when I run this scenario it works fine, so these seems to be a windows vs linux difference
run: |
dotnet pack ../../Src/CSharpier.MsBuild/CSharpier.MsBuild.csproj -o nupkg /p:Version=0.0.1
dotnet build -c Release ./TestCases/UnformattedFileCausesError/Project.csproj
dotnet build -c Release ./TestCases/FileThatCantCompileCausesOneError/Project.csproj