From 049da040a979a05cac2de762c32dc8004c8c05e1 Mon Sep 17 00:00:00 2001 From: "Jose (Joseph) Rodriguez" Date: Wed, 5 Jun 2024 18:40:36 -0700 Subject: [PATCH] Create dotnet-format.yml --- .github/workflows/dotnet-format.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dotnet-format.yml diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml new file mode 100644 index 0000000..feb84ee --- /dev/null +++ b/.github/workflows/dotnet-format.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET Format + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Format + run: dotnet format --verify-no-changes --verbosity diagnostic