Skip to content

Commit 8786229

Browse files
authored
Merge pull request #2 from thiagoluga/chore/bootstrap
chore: bootstrap da solution, .gitignore e CI
2 parents edb8c83 + 681b603 commit 8786229

4 files changed

Lines changed: 127 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
name: build · test · format
15+
runs-on: ubuntu-latest
16+
env:
17+
DOTNET_NOLOGO: true
18+
DOTNET_CLI_TELEMETRY_OPTOUT: true
19+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup .NET (8 + 9)
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: |
27+
8.0.x
28+
9.0.x
29+
30+
- name: Restore
31+
run: dotnet restore NeoReports.sln
32+
33+
- name: Build
34+
run: dotnet build NeoReports.sln --configuration Release --no-restore
35+
36+
- name: Test
37+
run: dotnet test NeoReports.sln --configuration Release --no-build --verbosity normal
38+
39+
- name: Format (verify)
40+
run: dotnet format NeoReports.sln --verify-no-changes --no-restore

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# ---------------------------------------------------------------------------
2+
# .NET / NeoReports .gitignore
3+
# ---------------------------------------------------------------------------
4+
5+
# Build results
6+
[Bb]in/
7+
[Oo]bj/
8+
[Oo]ut/
9+
[Ll]og/
10+
[Ll]ogs/
11+
artifacts/
12+
13+
# Visual Studio / Rider / VS Code
14+
.vs/
15+
.vscode/
16+
.idea/
17+
*.user
18+
*.suo
19+
*.userosscache
20+
*.sln.docstates
21+
*.userprefs
22+
*_i.c
23+
*_p.c
24+
25+
# Test / coverage results
26+
[Tt]est[Rr]esult*/
27+
[Bb]uild[Ll]og.*
28+
coverage*.json
29+
coverage*.xml
30+
coverage*.info
31+
*.coverage
32+
*.coveragexml
33+
TestResults/
34+
BenchmarkDotNet.Artifacts/
35+
36+
# NuGet
37+
*.nupkg
38+
*.snupkg
39+
**/[Pp]ackages/*
40+
!**/[Pp]ackages/build/
41+
*.nuget.props
42+
*.nuget.targets
43+
.nuget/
44+
45+
# MSBuild / Roslyn
46+
*.binlog
47+
project.lock.json
48+
project.fragment.lock.json
49+
50+
# Rider/ReSharper
51+
_ReSharper*/
52+
*.DotSettings.user
53+
54+
# OS files
55+
.DS_Store
56+
Thumbs.db
57+
desktop.ini
58+
59+
# Local environment / secrets
60+
*.env
61+
.env.local
62+
appsettings.*.local.json
63+
secrets.json

NeoReports.sln

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
# Visual Studio 2022
5+
VisualStudioVersion = 17.0.31903.59
6+
MinimumVisualStudioVersion = 10.0.40607.1
7+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{11111111-1111-1111-1111-111111111111}"
8+
EndProject
9+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{22222222-2222-2222-2222-222222222222}"
10+
EndProject
11+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{33333333-3333-3333-3333-333333333333}"
12+
EndProject
13+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{44444444-4444-4444-4444-444444444444}"
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(SolutionProperties) = preSolution
21+
HideSolutionNode = FALSE
22+
EndGlobalSection
23+
EndGlobal

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
33
"version": "9.0.100",
4-
"rollForward": "latestFeature"
4+
"rollForward": "latestMajor"
55
}
66
}

0 commit comments

Comments
 (0)