Skip to content

Commit b1bf751

Browse files
author
Rick
authored
First commit
Features/init commit
2 parents 0910e18 + 36437f5 commit b1bf751

56 files changed

Lines changed: 3682 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
2+
root = true
3+
# All files
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
8+
# Xml files
9+
[*.{xml,csproj}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
# YML and YAML files
14+
[*.{yml,yaml}]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.props]
19+
indent_size = 2
20+
21+
[*.json]
22+
indent_size = 2
23+
24+
[*.cs]
25+
dotnet_diagnostic.CA1062.severity = none # nullable referece types is enabled.
26+
dotnet_diagnostic.CA1303.severity = none # strings are not localised, only at UI level
27+
dotnet_diagnostic.CA1724.severity = none # Conflicting names are allowed in different namespaces
28+
csharp_style_namespace_declarations=file_scoped:suggestion
29+
csharp_style_var_elsewhere=true:suggestion
30+
csharp_style_var_when_type_is_apparent=true:suggestion
31+
csharp_style_var_for_built_in_types=true:suggestion
32+
dotnet_diagnostic.CSE007.severity=silent
33+
dotnet_diagnostic.CSE005.severity=silent

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union

.github/workflows/corebuild.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: .NET Core
2+
3+
env:
4+
MAJOR: 1
5+
MINOR: 0
6+
PATCH: 0
7+
8+
on:
9+
push:
10+
branches: [ features/init-commit ]
11+
pull_request:
12+
branches: [ main ]
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout GitHub actions
18+
uses: actions/checkout@v2
19+
20+
- name: Setup .NET Core 6.0.x
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: 6.0.x
24+
25+
- name: Install dependencies
26+
run: dotnet restore "./ChangeDetection.sln"
27+
28+
- name: Build code
29+
run: dotnet build "./ChangeDetection.sln" --configuration Release --no-restore
30+
31+
- name: Publish ConsoleApp for win-x86
32+
run: dotnet publish "./src/ConsoleApp/ConsoleApp.csproj" -c Release -r win-x86 -p:PublishSingleFile=true --self-contained true -o win-x86
33+
34+
- name: Publish ConsoleApp for win-x64
35+
run: dotnet publish "./src/ConsoleApp/ConsoleApp.csproj" -c Release -r win-x64 -p:PublishSingleFile=true --self-contained true -o win-x64
36+
37+
- name: Publish ConsoleApp for linux-x64
38+
run: dotnet publish "./src/ConsoleApp/ConsoleApp.csproj" -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true -o linux-x64
39+
40+
- name: Publish ConsoleApp for osx-x64
41+
run: dotnet publish "./src/ConsoleApp/ConsoleApp.csproj" -c Release -r osx-x64 -p:PublishSingleFile=true --self-contained true -o osx-x64
42+
43+
- name: Upload win-x86 Artifacts
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: ConsoleApp win-x86
47+
path: "./win-x86"
48+
49+
- name: Upload win-x64 Artifacts
50+
uses: actions/upload-artifact@v2
51+
with:
52+
name: ConsoleApp win-x64
53+
path: "./win-x64"
54+
55+
- name: Upload linux-x64 Artifacts
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: ConsoleApp linux-x64
59+
path: "./linux-x64"
60+
61+
- name: Upload osx-x64 Artifacts
62+
uses: actions/upload-artifact@v2
63+
with:
64+
name: ConsoleApp osx-x64
65+
path: "./osx-x64"

0 commit comments

Comments
 (0)