Skip to content

Commit

Permalink
update test db
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Dec 5, 2023
1 parent b31295c commit 2c0ac51
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,30 @@ jobs:
with:
path: ${{ github.workspace }}/
key: ${{ github.sha }}-your-cache-key-with-setup
- 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/' Tests.Common/TestDatabases.txt
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: '8.0'
root-password: 'YourStrong!Passw0rd'
auto-start: true
- name: Initialise RDMP
run: |
dotnet run -c Release --no-build --project Tools/rdmp/rdmp.csproj -- install --createdatabasetimeout 180 "(localdb)\MSSQLLocalDB" TEST_ -e
- name: Test (DB)
shell: bash
run: |
ls Rdmp.UI.Tests
dotnet test Rdmp.UI.Tests/Rdmp.UI.Tests.csproj --no-build -c Release
# dotnet test Rdmp.UI.Tests/Rdmp.UI.Tests.csproj --nologo --collect:"XPlat Code Coverage" --no-build --verbosity minimal -c Release --results-directory coverage -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
# mv `find coverage -type f` db-ui.lcov
dotnet test Rdmp.Core.Tests/Rdmp.Core.Tests.csproj --nologo --collect:"XPlat Code Coverage" --no-build --verbosity minimal -c Release --results-directory coverage -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
# mv `find coverage -type f` db-core.lcov
ls Rdmp.UI.Tests
dotnet test Rdmp.UI.Tests/Rdmp.UI.Tests.csproj --no-build -c Release
echo "Hello world!"
# dotnet test Rdmp.UI.Tests/Rdmp.UI.Tests.csproj --nologo --collect:"XPlat Code Coverage" --no-build --verbosity minimal -c Release --results-directory coverage -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
# mv `find coverage -type f` db-ui.lcov
dotnet test Rdmp.Core.Tests/Rdmp.Core.Tests.csproj --nologo --collect:"XPlat Code Coverage" --no-build --verbosity minimal -c Release --results-directory coverage -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
# mv `find coverage -type f` db-core.lcov
# - uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.github_token }}
Expand Down

0 comments on commit 2c0ac51

Please sign in to comment.