@@ -4,6 +4,7 @@ on: [push]
4
4
5
5
env :
6
6
DOTNET_VERSION : 9.0.303
7
+ TARGET_FRAMEWORK : net9.0
7
8
CONNECTOR_VERSION : 1.3.0
8
9
LICENSE_KEY : ${{ secrets.LICENSE_KEY }}
9
10
SQL_USER_PASSWORD : ${{ secrets.SQL_USER_PASSWORD }}
@@ -67,27 +68,40 @@ jobs:
67
68
sed -i "s|SINGLESTORE_HOST|127.0.0.1|g" tests/SideBySide/config.json
68
69
sed -i "s|SQL_USER_PASSWORD|${SQL_USER_PASSWORD}|g" tests/SideBySide/config.json
69
70
sed -i "s|SQL_USER_NAME|root|g" tests/SideBySide/config.json
70
- mkdir -p /home/runner/work/SingleStoreNETConnector/SingleStoreNETConnector/artifacts/bin/SideBySide/release_net9.0 /
71
- cp tests/SideBySide/config.json /home/runner/work/SingleStoreNETConnector/SingleStoreNETConnector/artifacts/bin/SideBySide/release_net9.0 /config.json
71
+ mkdir -p /home/runner/work/SingleStoreNETConnector/SingleStoreNETConnector/artifacts/bin/SideBySide/release_${{ env.TARGET_FRAMEWORK }} /
72
+ cp tests/SideBySide/config.json /home/runner/work/SingleStoreNETConnector/SingleStoreNETConnector/artifacts/bin/SideBySide/release_${{ env.TARGET_FRAMEWORK }} /config.json
72
73
73
74
- name : Run Unit tests
74
75
run : |
75
76
cd tests/SingleStoreConnector.Tests
76
- dotnet test -f net9.0 -c Release --no-build
77
+ dotnet test -f ${{ env.TARGET_FRAMEWORK }} -c Release --no-build
77
78
cd ../../
78
79
79
80
- name : Run Conformance tests
80
81
run : |
81
82
cd tests/Conformance.Tests
82
- dotnet test -f net9.0 -c Release --no-build
83
+ dotnet test -f ${{ env.TARGET_FRAMEWORK }} -c Release --no-build
84
+ cd ../../
85
+
86
+ - name : Run DependencyInjection tests
87
+ run : |
88
+ cd tests/SingleStoreConnector.DependencyInjection.Tests
89
+ dotnet test -f ${{ env.TARGET_FRAMEWORK }} -c Release --no-build
90
+ cd ../../
91
+
92
+ - name : Run NativeAot tests
93
+ run : |
94
+ cd tests/SingleStoreConnector.NativeAot.Tests
95
+ dotnet run -f ${{ env.TARGET_FRAMEWORK }} -c Release
83
96
cd ../../
84
97
85
98
- name : Run SideBySide tests
86
99
run : |
87
100
cd tests/SideBySide
88
- dotnet test -f net9.0 -c Release --no-build
101
+ dotnet test -f ${{ env.TARGET_FRAMEWORK }} -c Release --no-build
89
102
cd ../../
90
103
104
+
91
105
test-windows :
92
106
runs-on : windows-latest
93
107
strategy :
@@ -117,13 +131,19 @@ jobs:
117
131
run : echo "CONNECTION_STRING=$(< $HOME/CONNECTION_STRING)" >> $GITHUB_ENV
118
132
119
133
- name : Run Unit tests
120
- run : .\.github\workflows\run-test-windows.ps1 -test_block SingleStoreConnector.Tests -target_framework net9.0
134
+ run : .\.github\workflows\run-test-windows.ps1 -test_block SingleStoreConnector.Tests -target_framework ${{ env.TARGET_FRAMEWORK }}
121
135
122
136
- name : Run Conformance tests
123
- run : .\.github\workflows\run-test-windows.ps1 -test_block Conformance.Tests -target_framework net9.0
137
+ run : .\.github\workflows\run-test-windows.ps1 -test_block Conformance.Tests -target_framework ${{ env.TARGET_FRAMEWORK }}
138
+
139
+ - name : Run DependencyInjection tests
140
+ run : .\.github\workflows\run-test-windows.ps1 -test_block SingleStoreConnector.DependencyInjection.Tests -target_framework ${{ env.TARGET_FRAMEWORK }}
141
+
142
+ - name : Run NativeAot tests
143
+ run : dotnet run --project tests/SingleStoreConnector.NativeAot.Tests --framework ${{ env.TARGET_FRAMEWORK }} --configuration Release
124
144
125
145
- name : Run SideBySide tests
126
- run : .\.github\workflows\run-test-windows.ps1 -test_block SideBySide -target_framework net9.0
146
+ run : .\.github\workflows\run-test-windows.ps1 -test_block SideBySide -target_framework ${{ env.TARGET_FRAMEWORK }}
127
147
128
148
- name : Terminate test cluster
129
149
if : always()
0 commit comments