11name : DotNet Build and Test
22
3+ permissions :
4+ contents : read
5+
36# Triggers the workflow on push or pull request events but only for the master branch
47on :
58 push :
@@ -237,7 +240,7 @@ jobs:
237240 - name : Run Tests
238241 run : |
239242 cd Snowflake.Data.Tests
240- dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build --logger junit;LogFilePath=windows_ ${{ matrix.dotnet }}_${{ matrix.cloud_env }}_results.junit.xml --verbosity normal" --output macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
243+ dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build --logger junit;LogFilePath=macos_ ${{ matrix.dotnet }}_${{ matrix.cloud_env }}_results.junit.xml --verbosity normal" --output macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
241244 env :
242245 snowflake_cloud_env : ${{ matrix.cloud_env }}
243246 net_version : ${{ matrix.dotnet }}
@@ -252,7 +255,7 @@ jobs:
252255 name : tests-performance_macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
253256 path : Snowflake.Data.Tests/macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_performance.csv
254257 - name : Upload test results to Codecov
255- if : ${{!cancelled()}}
258+ if : ${{ !cancelled() }}
256259 uses : codecov/test-results-action@v1
257260 with :
258261 token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
@@ -263,3 +266,44 @@ jobs:
263266 token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
264267 fail_ci_if_error : true
265268 files : Snowflake.Data.Tests/macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml
269+
270+ test-rockylinux9 :
271+ name : Tests on Rocky Linux 9
272+ runs-on : ubuntu-latest
273+ strategy :
274+ fail-fast : false
275+ matrix :
276+ dotnet : ['net6.0', 'net7.0', 'net8.0', 'net9.0']
277+ cloud_env : ['AZURE', 'GCP', 'AWS']
278+ steps :
279+ - uses : actions/checkout@v4
280+ - name : Build and Run Tests in Docker
281+ run : ./ci/test_rockylinux9_docker.sh
282+ env :
283+ PARAMETER_SECRET : ${{ secrets.PARAMETER_SECRET }}
284+ snowflake_cloud_env : ${{ matrix.cloud_env }}
285+ net_version : ${{ matrix.dotnet }}
286+ DOTNET_COVERAGE_VERSION : " 17.8.4"
287+ shell : bash
288+ - name : Upload Code Coverage Report
289+ uses : actions/upload-artifact@v4
290+ with :
291+ name : code-coverage-report_rockylinux9_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
292+ path : Snowflake.Data.Tests/rockylinux9_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml
293+ - name : Upload Test Performance Report
294+ uses : actions/upload-artifact@v4
295+ with :
296+ name : tests-performance_rockylinux9_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
297+ path : Snowflake.Data.Tests/linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_performance.csv
298+ - name : Upload test results to Codecov
299+ if : ${{ !cancelled() }}
300+ uses : codecov/test-results-action@v1
301+ with :
302+ token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
303+ - name : Upload coverage reports to Codecov
304+ uses : codecov/codecov-action@v4
305+ with :
306+ # without the token code cov may fail because of Github limits https://github.com/codecov/codecov-action/issues/557
307+ token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
308+ fail_ci_if_error : true
309+ files : Snowflake.Data.Tests/rockylinux9_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml
0 commit comments