-
Notifications
You must be signed in to change notification settings - Fork 84
47 lines (39 loc) · 1.23 KB
/
dotnet-codestyle.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
38
39
40
41
42
43
44
45
46
47
name: .NET Codestyle
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'binding/dotnet/**/*.cs'
- 'demo/dotnet/**/*.cs'
- '.github/workflows/dotnet-codestyle.yml'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'binding/dotnet/**/*.cs'
- 'demo/dotnet/**/*.cs'
- '.github/workflows/dotnet-codestyle.yml'
jobs:
check-dotnet-codestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Run Binding Codestyle
run: dotnet format --verify-no-changes
working-directory: binding/dotnet
# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: binding/dotnet
- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../binding/dotnet/Rhino/bin/Release Rhino
working-directory: demo/dotnet/RhinoDemo
# ********************************************************
- name: Run Demo Codestyle
run: dotnet format --verify-no-changes
working-directory: demo/dotnet