DotTiled/.github/workflows/pull-request.yml

26 lines
727 B
YAML
Raw Normal View History

2024-08-17 21:28:38 +02:00
on:
pull_request:
branches:
- master
- dev
jobs:
2024-08-21 23:37:09 +02:00
build:
2024-08-17 21:28:38 +02:00
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
2024-08-17 21:55:06 +02:00
run: dotnet restore src/DotTiled.sln
2024-08-17 21:28:38 +02:00
- name: Build
2024-08-17 21:55:06 +02:00
run: dotnet build --no-restore src/DotTiled.sln
2024-08-17 21:28:38 +02:00
- name: Test
2024-08-17 21:55:06 +02:00
run: dotnet test --no-build --verbosity normal src/DotTiled.sln
2024-08-22 21:12:16 +02:00
- name: Lint style
run: dotnet format style --verify-no-changes --verbosity diagnostic src/DotTiled.sln
- name: Lint analyzers
run: dotnet format analyzers --verify-no-changes --verbosity diagnostic src/DotTiled.sln