Skip to content

Commit ab36ef5

Browse files
authored
Nuke (#47)
* FixtureLifeCycle * [bug] nuke * [Bug] Changelog ReadChangelog * Changelog * tools * Install
1 parent 8cd413d commit ab36ef5

38 files changed

+1625
-470
lines changed

.editorconfig

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = space
9+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
10+
11+
# Code files
12+
[*.{cs,csx}]
13+
indent_size = 4
14+
15+
# Xml project files
16+
[*.{csproj}]
17+
indent_size = 2
18+
19+
# Xml config files
20+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
21+
indent_size = 2
22+
23+
# JSON files
24+
[*.json]
25+
indent_size = 2
26+
27+
# proto
28+
[*.proto]
29+
indent_size = 2
30+
31+
# Dotnet code style settings:
32+
[*.{cs}]
33+
# Sort using and Import directives with System.* appearing first
34+
dotnet_sort_system_directives_first = true
35+
# Avoid "this." and "Me." if not necessary
36+
dotnet_style_qualification_for_field = false:suggestion
37+
dotnet_style_qualification_for_property = false:suggestion
38+
dotnet_style_qualification_for_method = false:suggestion
39+
dotnet_style_qualification_for_event = false:suggestion
40+
41+
# Use language keywords instead of framework type names for type references
42+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
43+
dotnet_style_predefined_type_for_member_access = true:suggestion
44+
45+
# Suggest more modern language features when available
46+
dotnet_style_object_initializer = true:suggestion
47+
dotnet_style_collection_initializer = true:suggestion
48+
dotnet_style_coalesce_expression = true:suggestion
49+
dotnet_style_null_propagation = true:suggestion
50+
dotnet_style_explicit_tuple_names = true:suggestion
51+
52+
# CSharp code style settings:
53+
[*.cs]
54+
# Prefer "var" everywhere
55+
csharp_style_var_for_built_in_types = true:suggestion
56+
csharp_style_var_when_type_is_apparent = true:suggestion
57+
csharp_style_var_elsewhere = true:suggestion
58+
59+
# Prefer method-like constructs to have a block body
60+
csharp_style_expression_bodied_methods = false:none
61+
csharp_style_expression_bodied_constructors = false:none
62+
csharp_style_expression_bodied_operators = false:none
63+
64+
# Prefer property-like constructs to have an expression-body
65+
csharp_style_expression_bodied_properties = true:none
66+
csharp_style_expression_bodied_indexers = true:none
67+
csharp_style_expression_bodied_accessors = true:none
68+
69+
# Suggest more modern language features when available
70+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
71+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
72+
csharp_style_inlined_variable_declaration = true:suggestion
73+
csharp_style_throw_expression = true:suggestion
74+
csharp_style_conditional_delegate_call = true:suggestion
75+
76+
# Newline settings
77+
csharp_new_line_before_open_brace = all
78+
csharp_new_line_before_else = true
79+
csharp_new_line_before_catch = true
80+
csharp_new_line_before_finally = true
81+
csharp_new_line_before_members_in_object_initializers = true
82+
csharp_new_line_before_members_in_anonymous_types = true

.gitattributes

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
5+
# Custom for Visual Studio
6+
*.cs diff=csharp
7+
*.sln merge=union
8+
*.csproj merge=union
9+
*.vbproj merge=union
10+
*.fsproj merge=union
11+
*.dbproj merge=union
12+
13+
# Standard to msysgit
14+
*.doc diff=astextplain
15+
*.DOC diff=astextplain
16+
*.docx diff=astextplain
17+
*.DOCX diff=astextplain
18+
*.dot diff=astextplain
19+
*.DOT diff=astextplain
20+
*.pdf diff=astextplain
21+
*.PDF diff=astextplain
22+
*.rtf diff=astextplain
23+
*.RTF diff=astextplain
24+
25+
# Needed for Mono build shell script
26+
*.sh -text eol=lf
27+
28+
# Needed for API Approvals
29+
*.txt text eol=crlf
30+
31+
build.sh eol=lf
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# ------------------------------------------------------------------------------
2+
# <auto-generated>
3+
#
4+
# This code was generated.
5+
#
6+
# - To turn off auto-generation set:
7+
#
8+
# [CustomGitHubActions (AutoGenerate = false)]
9+
#
10+
# - To trigger manual generation invoke:
11+
#
12+
# nuke --generate-configuration GitHubActions_Windows_release --host GitHubActions
13+
#
14+
# </auto-generated>
15+
# ------------------------------------------------------------------------------
16+
17+
name: Windows_release
18+
19+
on:
20+
push:
21+
tags:
22+
- '*'
23+
24+
jobs:
25+
windows-latest:
26+
name: windows-latest
27+
runs-on: windows-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Make build.sh executable
31+
run: chmod +x ./build.sh
32+
- name: Make build.cmd executable
33+
run: chmod +x ./build.cmd
34+
- uses: actions/setup-dotnet@v1
35+
with:
36+
dotnet-version: 5.0.*
37+
- uses: actions/setup-dotnet@v1
38+
with:
39+
dotnet-version: 6.0.*
40+
- name: Cache .nuke/temp, ~/.nuget/packages
41+
uses: actions/cache@v2
42+
with:
43+
path: |
44+
.nuke/temp
45+
~/.nuget/packages
46+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
47+
- name: Run './build.cmd NuGet'
48+
run: ./build.cmd NuGet
49+
env:
50+
Nuget_Key: ${{ secrets.NUGET_KEY }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# ------------------------------------------------------------------------------
2+
# <auto-generated>
3+
#
4+
# This code was generated.
5+
#
6+
# - To turn off auto-generation set:
7+
#
8+
# [CustomGitHubActions (AutoGenerate = false)]
9+
#
10+
# - To trigger manual generation invoke:
11+
#
12+
# nuke --generate-configuration GitHubActions_pr_validation --host GitHubActions
13+
#
14+
# </auto-generated>
15+
# ------------------------------------------------------------------------------
16+
17+
name: pr_validation
18+
19+
on:
20+
push:
21+
branches:
22+
- master
23+
- dev
24+
pull_request:
25+
branches:
26+
- master
27+
- dev
28+
29+
jobs:
30+
windows-latest:
31+
name: windows-latest
32+
runs-on: windows-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Make build.sh executable
36+
run: chmod +x ./build.sh
37+
- name: Make build.cmd executable
38+
run: chmod +x ./build.cmd
39+
- uses: actions/setup-dotnet@v1
40+
with:
41+
dotnet-version: 5.0.*
42+
- uses: actions/setup-dotnet@v1
43+
with:
44+
dotnet-version: 6.0.*
45+
- name: Cache .nuke/temp, ~/.nuget/packages
46+
uses: actions/cache@v2
47+
with:
48+
path: |
49+
.nuke/temp
50+
~/.nuget/packages
51+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
52+
- name: Run './build.cmd All'
53+
run: ./build.cmd All
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
ubuntu-latest:
57+
name: ubuntu-latest
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Make build.sh executable
62+
run: chmod +x ./build.sh
63+
- name: Make build.cmd executable
64+
run: chmod +x ./build.cmd
65+
- uses: actions/setup-dotnet@v1
66+
with:
67+
dotnet-version: 5.0.*
68+
- uses: actions/setup-dotnet@v1
69+
with:
70+
dotnet-version: 6.0.*
71+
- name: Cache .nuke/temp, ~/.nuget/packages
72+
uses: actions/cache@v2
73+
with:
74+
path: |
75+
.nuke/temp
76+
~/.nuget/packages
77+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
78+
- name: Run './build.cmd All'
79+
run: ./build.cmd All
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)