Adding format selection for VSCode plugin #720
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 ] | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
name: Run Tests | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
7.0.304 | |
6.0.300 | |
- run: | | |
dotnet build CSharpier.sln -c release | |
dotnet test CSharpier.sln -c release | |
check_formatting: | |
runs-on: ubuntu-latest | |
name: Check Formatting | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
7.0.304 | |
6.0.300 | |
- run: | | |
dotnet tool restore | |
dotnet csharpier . --check | |
build_msbuild: | |
runs-on: ubuntu-latest | |
name: Build CSharpier.MSBuild | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
7.0.304 | |
6.0.300 | |
- run: | | |
dotnet build Src/CSharpier.MsBuild/CSharpier.MsBuild.csproj |