Skip to content

Add lint step to pull request workflow #2

Add lint step to pull request workflow

Add lint step to pull request workflow #2

Workflow file for this run

on:
pull_request:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src/DotTiled.sln
- name: Build
run: dotnet build --no-restore src/DotTiled.sln
- name: Test
run: dotnet test --no-build --verbosity normal src/DotTiled.sln
- name: Lint
run: |
dotnet format style --verify-no-changes --verbosity diagnostic src/DotTiled.sln
dotnet format analyzers --verify-no-changes --verbosity diagnostic src/DotTiled.sln