From cc42c160ff0bb0574fae767410da05a1fcd3d968 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Tue, 4 Jun 2024 21:25:50 -0400 Subject: [PATCH] Add workflow --- .github/workflows/wf-verify-formatting.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/wf-verify-formatting.yml diff --git a/.github/workflows/wf-verify-formatting.yml b/.github/workflows/wf-verify-formatting.yml new file mode 100644 index 00000000..25ca52c4 --- /dev/null +++ b/.github/workflows/wf-verify-formatting.yml @@ -0,0 +1,29 @@ +name: Format (Pull Request) +on: + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + format: + runs-on: windows-2019 + steps: + - uses: actions/checkout@v4 + name: Checkout Code + + - name: Install additional .NET SDKs + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 1.0.x + 2.0.x + 5.0.x + 6.0.x + 8.0.x + + - name: Restore NuGet Packages + run: dotnet restore + + - name: Build library + run: dotnet format --verify-no-changes --verbosity detailed