-
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.
Run on Github hosted runner now we're OSS and can do so for free
- Loading branch information
Showing
2 changed files
with
34 additions
and
5 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ env: | |
|
||
jobs: | ||
package: | ||
runs-on: self-hosted | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
@@ -20,15 +20,44 @@ jobs: | |
path: RDMP | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
dotnet-version: 7.0.x | ||
- name: Get version | ||
id: version | ||
shell: cmd | ||
run: | | ||
getversions >> %GITHUB_OUTPUT% | ||
- name: Install MS SQL 2019 Express LocalDB | ||
uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install -r sqllocaldb --no-progress | ||
- name: Install python2 | ||
uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install -r python2 | ||
- name: Populate Databases.yaml | ||
shell: bash | ||
run: | | ||
find ./RDMP/Tools/rdmp/Databases.yaml -type f -exec sed -i 's/RDMP_/TEST_/g' {} \; | ||
# - name: Initialise LocalDB | ||
# shell: bash | ||
# run: | | ||
# SqlLocalDB.exe create MSSQLLocalDB -s | ||
# sqlcmd -l 180 -S '(localdb)\MSSQLLocalDB' -Q "SELECT @@VERSION;" | ||
# sed -i'' -e 's/localhost/\(localdb\)\\MSSQLLocalDB/' RDMP/Tests.Common/TestDatabases.txt | ||
- name: Install a SQL Server suite of tools | ||
uses: potatoqualitee/[email protected] | ||
with: | ||
install: sqlengine, sqlclient, sqlpackage, localdb | ||
- name: Run sqlclient | ||
run: sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT @@version;" | ||
- uses: shogo82148/actions-setup-mysql@v1 | ||
with: | ||
mysql-version: '8.0' | ||
root-password: 'YourStrong!Passw0rd' | ||
auto-start: true | ||
- name: Set up database | ||
run: | | ||
dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- install localhost TEST_ -d | ||
dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- install --createdatabasetimeout 1800 localhost TEST_ -e | ||
- name: Test | ||
run: | | ||
dotnet test | ||
|
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