Skip to content

Commit 9fb22f7

Browse files
Merge pull request #5 from Stravaig-Projects/#1/setup
#1 Follow the TODO after creating the initial template
2 parents 91354d6 + 465294f commit 9fb22f7

File tree

16 files changed

+136
-70
lines changed

16 files changed

+136
-70
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Stravaig PROJECT NAME HERE
1+
name: Stravaig Configuration SQL Server Provider
22
on:
33
push:
44
branches:
@@ -38,9 +38,9 @@ jobs:
3838
name: Build, Test, and Release
3939
runs-on: ubuntu-latest
4040
env:
41-
STRAVAIG_SOLUTION: src/XXXX.sln
42-
STRAVAIG_TESTS: XXXX.Tests
43-
STRAVAIG_PROJECT: XXXX
41+
STRAVAIG_SOLUTION: src/Stravaig.Configuration.SqlServer.sln
42+
STRAVAIG_TESTS: Stravaig.Configuration.SqlServer.Tests
43+
STRAVAIG_PROJECT: Stravaig.Configuration.SqlServer
4444

4545
steps:
4646
- name: Check out code
@@ -66,14 +66,9 @@ jobs:
6666
echo "Is Stable: $STRAVAIG_IS_STABLE"
6767
6868
- uses: actions/setup-dotnet@v1
69-
name: Setup .NET Core 3.1 (Current LTS)
69+
name: Setup .NET 6.0 (Current LTS)
7070
with:
71-
dotnet-version: 3.1.x
72-
73-
- uses: actions/setup-dotnet@v1
74-
name: Setup .NET 5.0 (Current)
75-
with:
76-
dotnet-version: 5.0.x
71+
dotnet-version: 6.0.x
7772

7873
- name: Build Solution
7974
run: dotnet build $STRAVAIG_SOLUTION --configuration Release

README.md

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,8 @@
1-
# stravaig-template
1+
# Stravaig Configuration SQL Server Provider
22

3-
## TO DO
3+
A configuration provider that uses SQL Server as its backing store.
44

5-
First install the githooks, ensure powershell 7.x is installed and then run `Install-GitHooks.ps1`. Any work perfomed in feature branches must have a related _issue_ associated with them. The branch name will have to be prefixed with the issue number, followed by a slash then the branch name. (e.g. `#123/my-feature-branch`)
65

7-
The following then needs to be updated:
8-
9-
* Rename files:
10-
* Rename file `/src/Stravaig.XXXX.sln` (XXXX = name of the solution within the `Stravaig` namespace)
11-
* Rename file `/src/Stravaig.XXXX.sln.DotSettings` (XXXX = name of the solution within the `Stravaig` namespace)
12-
* Rename folder `/src/.idea/.idea.XXXX` (XXXX = name of solution without the file extension)
13-
* Add project files
14-
* Add the initial main project that will be packaged and tests to the solution.
15-
* Move the `/src/stravaig-icon.png` file into the package project folder.
16-
* Update the main project `.csproj` file with the details in the "package details" (below)
17-
* Update the `.github/workflows/build.yml` file with
18-
* The name of the project (line 1)
19-
* The environment variables in `jobs` \ `build` \ `env` to point to the new solution project and tests
20-
21-
## Package Details
22-
23-
This should be added to the main `.csproj` file:
24-
25-
```xml
26-
<Project Sdk="Microsoft.NET.Sdk">
27-
<PropertyGroup>
28-
<StravaigBuildTime>$([System.DateTime]::Now.ToString("dddd, d MMMM yyyy 'at' HH:mm:ss zzzz"))</StravaigBuildTime>
29-
<StravaigCopyrightYear>$([System.DateTime]::Now.ToString("yyyy"))</StravaigCopyrightYear>
30-
<StravaigGitHubCommit>$(GITHUB_SHA)</StravaigGitHubCommit>
31-
<StravaigWorkflowUrl>$(GITHUB_SERVER_URL)/$(GITHUB_REPOSITORY)/actions/runs/$(GITHUB_RUN_ID)</StravaigWorkflowUrl>
32-
<StravaigReleaseNotes>https://github.com/$(GITHUB_REPOSITORY)/releases/tag/$(STRAVAIG_RELEASE_TAG)</StravaigReleaseNotes>
33-
</PropertyGroup>
34-
35-
<PropertyGroup>
36-
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
37-
<Title>Stravaig XXXX</Title>
38-
<Authors>Colin Angus Mackay</Authors>
39-
<Copyright>©2020-$(StravaigCopyrightYear) Stravaig Projects. See licence for more information.</Copyright>
40-
<PackageProjectUrl>https://github.com/$(GITHUB_REPOSITORY)/blob/$(StravaigGitHubCommit)/README.md</PackageProjectUrl>
41-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
42-
<RepositoryUrl>https://github.com/$(GITHUB_REPOSITORY)</RepositoryUrl>
43-
<PackageIcon>stravaig-icon.png</PackageIcon>
44-
<PackageTags>XXXX</PackageTags>
45-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
46-
<Description>XXXX.
47-
48-
Built on $(StravaigBuildTime).
49-
Build run details at: $(StravaigWorkflowUrl)
50-
Release notes at: $(StravaigReleaseNotes)
51-
</Description>
52-
</PropertyGroup>
53-
54-
<ItemGroup>
55-
<None Include="stravaig-icon.png" Pack="true" PackagePath="/" />
56-
</ItemGroup>
57-
58-
<!-- Other things here -->
59-
</Project>
60-
```
61-
62-
Any part with `XXXX` should be replaced with appropriate information.
636

647
---
658

release-notes/wip-release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Date: ???
1010

1111
### Miscellaneous
1212

13+
- #1: Initial set up
14+
1315
### Dependabot
1416

1517

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0"/>
11+
<PackageReference Include="NUnit" Version="3.13.2"/>
12+
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0"/>
13+
<PackageReference Include="coverlet.collector" Version="3.1.0"/>
14+
<PackageReference Include="Shouldly" Version="4.0.3"/>
15+
</ItemGroup>
16+
17+
</Project>

0 commit comments

Comments
 (0)