forked from TTTReborn/tttreborn
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 839 Bytes
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI-dotnet
on:
pull_request:
paths:
- "**.cs"
- "**.csproj"
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
reason:
description: 'The reason for running the workflow'
required: true
default: 'Force run CI'
jobs:
build:
runs-on: ubuntu-latest
name: Code analysis
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Dotnet format annotations
uses: xt0rted/dotnet-format-problem-matcher@v1
- name: Setup dotnet-format tool
run: dotnet tool install -g dotnet-format --version 5.0.\*
- name: Run dotnet format
run: dotnet format --check -f .