Skip to content

Commit 7a41d25

Browse files
authored
feat(direct-connect): implemented build tasks to allow for reverse engineering from a running MSSQL server database (#6)
1 parent a2a9808 commit 7a41d25

47 files changed

Lines changed: 5658 additions & 208 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
- name: Setup .NET
3131
uses: actions/setup-dotnet@v4
3232
with:
33-
dotnet-version: 10.0.x
33+
dotnet-version: |
34+
8.0.x
35+
9.0.x
36+
10.0.x
3437
3538
- name: Restore
3639
run: |
@@ -130,7 +133,10 @@ jobs:
130133
- name: Setup .NET
131134
uses: actions/setup-dotnet@v4
132135
with:
133-
dotnet-version: 10.0.x
136+
dotnet-version: |
137+
8.0.x
138+
9.0.x
139+
10.0.x
134140
135141
- name: Restore
136142
run: |
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '0 12 * * 0'
10+
11+
jobs:
12+
analyze:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
actions: read
17+
contents: read
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: |
27+
10.0.x
28+
cache: true
29+
cache-dependency-path: |
30+
**/packages.lock.json
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: csharp
36+
37+
- name: Restore
38+
run: dotnet restore JD.Efcpt.Build.sln --use-lock-file
39+
40+
- name: Build
41+
run: dotnet build JD.Efcpt.Build.sln --configuration Release --no-restore
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Dependency Submission
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
id-token: write
11+
contents: write
12+
13+
jobs:
14+
dependency-submission:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '10.0.x'
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Component Detection
25+
uses: advanced-security/component-detection-dependency-submission-action@v0.1.0
26+
with:
27+
directoryExclusionList: 'samples/**/*;tests/**/*'

GitVersion.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mode: MainLine
2+
tag-prefix: 'v'
3+
commit-message-incrementing: Enabled
4+
5+
major-version-bump-message: '(?m)^[a-z]+(?:\([\w\s\-,/\\]+\))?!:|(?m)^\s*BREAKING CHANGE:'
6+
minor-version-bump-message: '(?m)^feat(?:\([\w\s\-,/\\]+\))?:'
7+
patch-version-bump-message: '(?m)^(?:fix|perf)(?:\([\w\s\-,/\\]+\))?:'

JD.Efcpt.Build.sln

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 17
33
VisualStudioVersion = 17.0.31903.59
44
MinimumVisualStudioVersion = 10.0.40219.1
@@ -8,6 +8,15 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JD.Efcpt.Build.Tasks", "src
88
EndProject
99
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JD.Efcpt.Build.Tests", "tests\JD.Efcpt.Build.Tests\JD.Efcpt.Build.Tests.csproj", "{0E3C0266-4B23-4F2C-8BA9-AE26EF9C98FE}"
1010
EndProject
11+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{27D3D38E-658D-4F9D-83DF-6B2124B16573}"
12+
ProjectSection(SolutionItems) = preProject
13+
CONTRIBUTING.md = CONTRIBUTING.md
14+
Directory.Build.props = Directory.Build.props
15+
LICENSE = LICENSE
16+
QUICKSTART.md = QUICKSTART.md
17+
README.md = README.md
18+
EndProjectSection
19+
EndProject
1120
Global
1221
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1322
Debug|Any CPU = Debug|Any CPU

QUICKSTART.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ MyApp/
120120
{
121121
"code-generation": {
122122
"use-t4": true,
123-
"t4-template-path": "Template/CodeTemplates/EFCore"
123+
"t4-template-path": "."
124124
}
125125
}
126126
```

0 commit comments

Comments
 (0)