Skip to content

Commit 3126a8b

Browse files
committed
add source code formatting to ci
1 parent 0943c58 commit 3126a8b

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

Diff for: .github/workflows/check-formatting.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check formatting
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
pull_request:
7+
branches: [ dev ]
8+
9+
jobs:
10+
check-formatting:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup .NET 5
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: '5.0.302'
21+
22+
- name: Check source document formatting
23+
run: |
24+
dotnet tool restore
25+
dotnet fake build -t CheckFormat

Diff for: Plotly.NET.sln

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.31702.278
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{BF60BC93-E09B-4E5F-9D85-95A519479D54}"
77
ProjectSection(SolutionItems) = preProject
@@ -33,6 +33,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{2461AFBF-6E1
3333
ProjectSection(SolutionItems) = preProject
3434
.github\workflows\build-and-deploy-docs.yml = .github\workflows\build-and-deploy-docs.yml
3535
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
36+
.github\workflows\check-formatting.yml = .github\workflows\check-formatting.yml
3637
.github\workflows\verify-docs.yml = .github\workflows\verify-docs.yml
3738
EndProjectSection
3839
EndProject

0 commit comments

Comments
 (0)