-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (31 loc) · 1.13 KB
/
checks.yml
File metadata and controls
41 lines (31 loc) · 1.13 KB
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
38
39
40
41
name: Static checks
on:
push: { branches: [ master ] }
pull_request: { branches: [ master ] }
release: { types: [published] } # runs on “Publish release” button
workflow_dispatch: # lets you run it by hand
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout Code
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Tools
run: dotnet tool restore
- name: Check if line endings are CRLF
run: |
bash -c "git grep -rlIP -- ':!GraphvizWrapper/graphvizfiles/*' ':!*.sh' | xargs unix2dos"
git diff --exit-code
- name: Check if README is up-to-date
run: git diff --exit-code -- README.md
- name: Check if code is formatted
run: dotnet format whitespace --verify-no-changes -v diag Rubjerg.Graphviz.sln
- name: Check if code is formatted
run: dotnet format whitespace --verify-no-changes -v diag Rubjerg.Graphviz.Tests.sln
- name: Check for loose ends
run: |
bash -c "! git grep 'FIX''NOW'"