Create new Getting Started page for Running Tests #500
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run DotNet examples | |
on: | |
schedule: | |
- cron: '35 22 * * *' | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- trunk | |
paths: | |
- 'examples/dotnet/**' | |
push: | |
branches: | |
- trunk | |
paths: | |
- 'examples/dotnet/**' | |
env: | |
DISPLAY: :99 | |
GITHUB_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
jobs: | |
test_examples: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout GitHub repo | |
uses: actions/checkout@v3 | |
- name: Install Chrome for set binary test | |
uses: browser-actions/setup-chrome@v1 | |
with: | |
chrome-version: stable | |
id: setup-chrome | |
- name: Install Edge for set binary test | |
uses: browser-actions/setup-edge@v1 | |
with: | |
edge-version: stable | |
id: setup-edge | |
- name: Install Firefox for set binary test | |
if: matrix.os != 'windows-latest' | |
uses: browser-actions/setup-firefox@v1 | |
with: | |
firefox-version: latest | |
id: setup-firefox | |
- name: Set ENV Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV | |
echo "EDGE_BIN=${{ steps.setup-edge.outputs.edge-path }}" >> $env:GITHUB_ENV | |
- name: Set ENV Other | |
if: matrix.os != 'windows-latest' | |
run: | | |
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" | |
echo "EDGE_BIN=${{ steps.setup-edge.outputs.edge-path }}" >> "$GITHUB_ENV" | |
echo "FF_BIN=${{ steps.setup-firefox.outputs.firefox-path }}" >> "$GITHUB_ENV" | |
- name: Start Xvfb | |
if: matrix.os == 'ubuntu-latest' | |
run: Xvfb :99 & | |
- name: Set up .Net | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Run tests | |
uses: nick-invision/[email protected] | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: | | |
cd examples/dotnet/SeleniumDocs | |
dotnet test |