Fixing issue with unsupported file error being shown for all files that csharpier can't format in a given directory. #1436
Workflow file for this run
This file contains 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: Validate Pull Request | |
on: | |
pull_request: | |
branches: [main,1.0.0] | |
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: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
name: Test CSharpier.MSBuild | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v3 | |
- env: | |
GithubOS: ${{matrix.os}} | |
run: | | |
pwsh ./Tests/MsBuild/Run.ps1 |