Skip to content

Allow Selection of a Runner in GitHub Actions Workflow #56

Allow Selection of a Runner in GitHub Actions Workflow

Allow Selection of a Runner in GitHub Actions Workflow #56

name: Selenium project tests
on:
workflow_dispatch:
inputs:
runner:
description: "Select the runner"
required: false
type: choice
options:
- windows-latest
- ubunntu-latest
default: windows-latest
pull_request:
branches: [ main ]
env:
BROWSER_PARAMS: "--window-size=1920,1080 --allowed-ips --no-sandbox"
jobs:
build:
runs-on: ${{ inputs.runner || 'windows-latest' }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
run: dotnet build -c Release --no-restore
- name: Test
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
run: dotnet test -c Release --no-build --verbosity normal