diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-01 15:48:34 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-01 15:48:34 -0500 |
commit | e55df04e362624e2f98274077a29ee65c8453070 (patch) | |
tree | 13dbd578b42446da62925bc4477af2ac14f9a7c7 /.github/workflows/dotnet.yml | |
parent | codeowners: correct the order (diff) | |
download | locusts-e55df04e362624e2f98274077a29ee65c8453070.tar locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.gz locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.bz2 locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.lz locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.xz locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.zst locusts-e55df04e362624e2f98274077a29ee65c8453070.zip |
Lint ourselves
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/dotnet.yml | 10 |
1 files changed, 6 insertions, 4 deletions
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 |