Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devops: simplify GitHub Action workflow #905

Merged
merged 2 commits into from Oct 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 5 additions & 27 deletions .github/workflows/tests.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
product: [CHROMIUM, FIREFOX, WEBKIT]
os: [windows-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
Expand All @@ -28,35 +28,13 @@ jobs:
run: |
dotnet dev-certs https --clean
dotnet dev-certs https -ep src/PlaywrightSharp.TestServer/testCert.cer
- name: Run tests
- name: Run tests (!Linux)
if: ${{ matrix.os != 'ubuntu-latest' }}
env:
PRODUCT: ${{ matrix.product }}
run: dotnet test ./src/PlaywrightSharp.Tests/PlaywrightSharp.Tests.csproj -c Debug -f netcoreapp3.1 --logger "trx;LogFileName=TestResults.xml"
- name: Test results
uses: actions/upload-artifact@v1
if: always()
with:
name: TestResult.xml
path: ./src/PlaywrightSharp.Tests/TestResults/TestResults.xml
test_linux:
name: ${{ matrix.product }} on ubuntu-latest
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
product: [CHROMIUM, FIREFOX, WEBKIT]
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1.6.0
with:
dotnet-version: 3.1.100
- name: Create Certificate
run: |
dotnet dev-certs https --clean
dotnet dev-certs https -ep src/PlaywrightSharp.TestServer/testCert.cer
- name: Run tests
- name: Run tests (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
PRODUCT: ${{ matrix.product }}
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && dotnet test ./src/PlaywrightSharp.Tests/PlaywrightSharp.Tests.csproj -c Debug -f netcoreapp3.1 --logger \"trx;LogFileName=TestResults.xml\""
Expand Down