generated from DbUp/dbup-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 44647c1
Showing
19 changed files
with
595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 🪲 Bug Report | ||
description: File a bug report | ||
title: "Something didn't work" | ||
labels: ["bug", "triage"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
For help with using the library and "how do I" please see the documentation or post on StackOverflow. | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Library Version | ||
description: Which version of the library did you find the bug in? | ||
placeholder: 1.0.0 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: What happened? | ||
description: Also tell us, what did you expect to happen? | ||
placeholder: Tell us what you see! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: DbUp Core Issue Repo | ||
url: https://github.com/DbUp/DbUp/issues | ||
about: If the issue or bug is not specific to this provider raise an issue in the main repo | ||
- name: DbUp Documentation | ||
url: https://dbup.readthedocs.io/ | ||
- name: StackOverflow DbUp tag | ||
url: https://stackoverflow.com/questions/tagged/dbup | ||
about: For "How do I" questions, please post on StackOverflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 🆕 Enhancement | ||
description: Suggest a new feature or enhancement | ||
title: "Something new" | ||
labels: ["enhancement", "triage"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing open and closed issues | ||
required: true | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
placeholder: Sell us the enhancement | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: impact | ||
attributes: | ||
label: What is the impact? | ||
description: How will this impact existing users? Is this a breaking change? Is this a common or edge use case? | ||
placeholder: Describe the impact this enhancement would have | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "nuget" | ||
directory: "/src/" | ||
schedule: | ||
interval: "weekly" | ||
ignore: | ||
# - dependency-name: "Foo*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Checklist | ||
- [ ] I have read the [Contributing Guide](https://github.com/DbUp/DbUp/blob/master/CONTRIBUTING.md) | ||
- [ ] I have checked to ensure this does not introduce an unintended breaking changes | ||
- [ ] I have considered appropriate testing for my change | ||
|
||
# Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest # Use Ubuntu in v5.0 | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # all | ||
|
||
- name: Setup .NET 2.0 # Remove in v5.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 2.0.x | ||
|
||
- name: Setup .NET 8.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v0 | ||
with: | ||
versionSpec: '5.x' | ||
|
||
- name: Run GitVersion | ||
id: gitversion | ||
uses: gittools/actions/gitversion/execute@v0 | ||
|
||
- name: Display SemVer | ||
run: | | ||
echo "SemVer: $env:GitVersion_SemVer" | ||
- name: Add DbUp NuGet Source | ||
run: dotnet nuget add source --name DbUp --username DbUp --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://nuget.pkg.github.com/DbUp/index.json | ||
|
||
- name: Restore | ||
run: dotnet restore | ||
working-directory: src | ||
|
||
- name: Build | ||
run: dotnet build -c Release --no-restore /p:Version=$env:GitVersion_SemVer | ||
working-directory: src | ||
|
||
- name: Test | ||
run: dotnet test --no-build -c Release --logger trx --logger "console;verbosity=detailed" --results-directory ../artifacts | ||
working-directory: src | ||
|
||
- name: Pack | ||
run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$env:GitVersion_SemVer | ||
working-directory: src | ||
|
||
- name: Push NuGet packages to GitHub Packages ⬆️ | ||
working-directory: artifacts | ||
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/DbUp/index.json" | ||
|
||
- name: Push NuGet packages to NuGet ⬆️ | ||
if: ${{ steps.gitversion.outputs.preReleaseLabel == '' }} | ||
working-directory: artifacts | ||
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json | ||
|
||
- name: Test Report 🧪 | ||
uses: dorny/test-reporter@v1 | ||
if: ${{ always() }} | ||
with: | ||
name: Tests | ||
path: artifacts/*.trx | ||
reporter: dotnet-trx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) | ||
bin | ||
obj | ||
|
||
# mstest test results | ||
TestResults | ||
|
||
|
||
*.*[~] | ||
*.swp | ||
*.userprefs | ||
*.test-cache | ||
*.pidb | ||
*.*scc | ||
*.FileListAbsolute.txt | ||
*.aps | ||
*.bak | ||
*.[Cc]ache | ||
*.clw | ||
*.eto | ||
*.fb6lck | ||
*.fbl6 | ||
*.fbpInf | ||
*.ilk | ||
*.lib | ||
*.log | ||
*.ncb | ||
*.nlb | ||
*.obj | ||
*.patch | ||
*.pch | ||
*.pdb | ||
*.plg | ||
*.[Pp]ublish.xml | ||
*.rdl.data | ||
*.sbr | ||
*.scc | ||
*.sig | ||
*.sqlsuo | ||
*.suo | ||
*.svclog | ||
*.tlb | ||
*.tlh | ||
*.tli | ||
*.tmp | ||
*.user | ||
*.vshost.* | ||
*DXCore.Solution | ||
*_i.c | ||
*_p.c | ||
Ankh.Load | ||
Backup* | ||
CVS/ | ||
PrecompiledWeb/ | ||
UpgradeLog*.* | ||
[Bb]in/ | ||
[Dd]ebug/ | ||
[Oo]bj/ | ||
[Rr]elease/ | ||
[Tt]humbs.db | ||
test-results/ | ||
_UpgradeReport_Files | ||
_[Rr]e[Ss]harper.*/ | ||
_TeamCity.*/ | ||
hgignore[.-]* | ||
ignore[.-]* | ||
svnignore[.-]* | ||
lint.db | ||
src/FunnelWeb.Web/App_Data/ClientDependency | ||
files\* | ||
files/* | ||
Files/* | ||
Temp/* | ||
build/Artifacts/ | ||
build/Published/ | ||
build/TestResult.xml | ||
[pP]ublish | ||
lib | ||
packages | ||
|
||
.DS_Store | ||
*.pidb | ||
*.orig | ||
src/packages/ | ||
*.received.txt | ||
src/_NCrunch_DbUp | ||
*.received.cs | ||
dbup*.nupkg | ||
.idea | ||
|
||
src/.vs/ | ||
project.lock.json | ||
project.lock.json | ||
project.lock.json | ||
tools/ | ||
artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mode: Mainline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Using this Template | ||
|
||
1. Create a new Repository in GitHub based on this template | ||
- The name should be `dbup-nameofthenewprovider` | ||
- It should be public | ||
1. Clone it | ||
1. Open it in VSCode or other light weight editor that doesn't have strong opinions about solution/project structure (i.e. not Rider/VS) | ||
1. Search for `NewProvider` and replace with the new provider's name, **turning on the preserve case option** | ||
1. Rename the following: | ||
- `dbup-newprovider.sln` | ||
- `dbup-newprovider.sln.DotSettings` | ||
- `dbup-newprovider\dbup-newprovider.csproj` | ||
- `dbup-newprovider` directory | ||
1. Run `dotnet build` to ensure it builds | ||
1. Delete these instructions up to and including the next line, then check in | ||
|
||
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/DbUp/dbup-newprovider/CI/main)](https://github.com/DbUp/dbup-newprovider/actions/workflows/main.yml?query=branch%3Amain) | ||
[![NuGet](https://img.shields.io/nuget/dt/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider) | ||
[![NuGet](https://img.shields.io/nuget/v/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider) | ||
[![Prerelease](https://img.shields.io/nuget/vpre/dbup-newprovider?color=orange&label=prerelease)](https://www.nuget.org/packages/dbup-newprovider) | ||
|
||
# DbUp NewProvider support | ||
DbUp is a .NET library that helps you to deploy changes to SQL Server databases. It tracks which SQL scripts have been run already, and runs the change scripts that are needed to get your database up to date. | ||
|
||
## Getting Help | ||
To learn more about DbUp check out the [documentation](https://dbup.readthedocs.io/en/latest/) | ||
|
||
Please only log issue related to NewProvider support in this repo. For cross cutting issues, please use our [main issue list](https://github.com/DbUp/DbUp/issues). | ||
|
||
# Contributing | ||
|
||
See the [readme in our main repo](https://github.com/DbUp/DbUp/blob/master/README.md) for how to get started and contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (C) 2015 DbUp contributors. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.