Skip to content

Commit

Permalink
[dotnet] split up frameworks on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 1, 2022
1 parent 993e6b2 commit c23b95b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-dotnet.yml
Expand Up @@ -18,14 +18,15 @@ jobs:
with:
bazel-target-prefix: '//dotnet'

browser-test:
browser:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[dotnet]') == true }}
needs: check_workflow
runs-on: 'windows-latest'
strategy:
fail-fast: false
matrix:
driver: [ Chrome, Firefox ]
framework: [ net6.0, net48, netcoreapp3.1 ]
include:
- driver: Chrome
location: 'C:\SeleniumWebDrivers\ChromeDriver'
Expand All @@ -43,14 +44,14 @@ jobs:
uses: ./.github/actions/cache-bazel
with:
workflow: dotnet
key: ${{ matrix.driver }}
key: ${{ matrix.driver }}-${{ matrix.framework }}
- name: Setup dotnet tests
uses: ./.github/actions/bazel
with:
command: build //dotnet/test/common:chrome
- name: Run ${{ matrix.driver }} tests
working-directory: dotnet
run: dotnet test test/common/WebDriver.Common.Tests.csproj
run: dotnet test test/common/WebDriver.Common.Tests.csproj --framework ${{ matrix.framework }}
env:
ACTIVE_DRIVER_CONFIG: ${{ matrix.driver }}
DRIVER_SERVICE_LOCATION: ${{ matrix.location }}

0 comments on commit c23b95b

Please sign in to comment.