Skip to content

Commit

Permalink
update runner
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Nov 17, 2023
1 parent e358c41 commit fbcccaa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
package:
runs-on: self-hosted
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
Expand All @@ -26,10 +26,28 @@ jobs:
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: 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
- 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
- name: Test
dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- install --createdatabasetimeout 1800 "(localdb)\MSSQLLocalDB" TEST_ -e - name: Test
run: |
dotnet test
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion LoadModules.Extensions.Tests/TestDatabases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#To achieve this, you can run DatabaseCreation.exe with argument 1 being your ServerName
#You can apply a prefix e.g. TEST_ as an argument to DatabaseCreation.exe and include that prefix below if you like

ServerName: localhost
ServerName: (localdb)\MSSQLocalDB
Prefix: TEST_
MySql: Server=localhost;Uid=root;Pwd=zombie;SSLMode=None
Oracle: Data Source=localhost:1521/orclpdb.dundee.uni;User Id=ora;Password=zombie;
Expand Down

0 comments on commit fbcccaa

Please sign in to comment.