Skip to content

Commit c23b95b

Browse files
committed
[dotnet] split up frameworks on CI
1 parent 993e6b2 commit c23b95b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci-dotnet.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ jobs:
1818
with:
1919
bazel-target-prefix: '//dotnet'
2020

21-
browser-test:
21+
browser:
2222
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[dotnet]') == true }}
2323
needs: check_workflow
2424
runs-on: 'windows-latest'
2525
strategy:
2626
fail-fast: false
2727
matrix:
2828
driver: [ Chrome, Firefox ]
29+
framework: [ net6.0, net48, netcoreapp3.1 ]
2930
include:
3031
- driver: Chrome
3132
location: 'C:\SeleniumWebDrivers\ChromeDriver'
@@ -43,14 +44,14 @@ jobs:
4344
uses: ./.github/actions/cache-bazel
4445
with:
4546
workflow: dotnet
46-
key: ${{ matrix.driver }}
47+
key: ${{ matrix.driver }}-${{ matrix.framework }}
4748
- name: Setup dotnet tests
4849
uses: ./.github/actions/bazel
4950
with:
5051
command: build //dotnet/test/common:chrome
5152
- name: Run ${{ matrix.driver }} tests
5253
working-directory: dotnet
53-
run: dotnet test test/common/WebDriver.Common.Tests.csproj
54+
run: dotnet test test/common/WebDriver.Common.Tests.csproj --framework ${{ matrix.framework }}
5455
env:
5556
ACTIVE_DRIVER_CONFIG: ${{ matrix.driver }}
5657
DRIVER_SERVICE_LOCATION: ${{ matrix.location }}

0 commit comments

Comments
 (0)