From e55df04e362624e2f98274077a29ee65c8453070 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 1 Nov 2024 15:48:34 -0500 Subject: Lint ourselves Signed-off-by: Matt Strapp --- .github/workflows/dotnet.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows/dotnet.yml') diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3b2fecb..6c525bd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -15,8 +15,8 @@ on: - ".github/workflows/dotnet.yml" jobs: - build-and-test: - name: Build and Test + build-lint-and-test: + name: Lint, Build and Test runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -30,12 +30,14 @@ jobs: uses: actions/setup-dotnet@v4 - name: Install dependencies run: dotnet restore + - name: Lint + run: dotnet format --verify-no-changes - name: Test run: dotnet test --no-restore publish-preview: name: Publish Preview NuGet to GitHub Packages - needs: build-and-test + needs: build-lint-and-test if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} runs-on: ubuntu-latest permissions: @@ -61,7 +63,7 @@ jobs: publish-release: name: Publish Release NuGet to NuGet.org - needs: build-and-test + needs: build-lint-and-test # Only run on this on proper semver (vX.Y.Z) tags if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} runs-on: ubuntu-latest -- cgit v1.2.3