[Draft] Puppeteer tests on CI #24
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: Puppeteer tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Run tests ${{matrix.sdk}} on ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
sdk: ['dev'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Dart SDK | |
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | |
with: | |
sdk: ${{ matrix.sdk }} | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 | |
- name: Get deps for dwds | |
run: dart pub upgrade | |
if: "always() && steps.checkout.conclusion == 'success'" | |
working-directory: dwds | |
- name: Get deps for debug extension | |
run: dart pub upgrade | |
if: "always() && steps.checkout.conclusion == 'success'" | |
working-directory: dwds/debug_extension_mv3 | |
- name: Download Chromium | |
run: dart test/puppeteer/download_chromium.dart | |
working-directory: dwds | |
- name: Run Puppeteer tests on linux | |
run: xvfb-run --auto-servernum dart test/puppeteer/extension_test.dart --no-retry --name="MV2 Debug Extension connected with SSE the debug info for a Dart app is saved in session storage" --platform vm | |
if: runner.os == 'Linux' | |
working-directory: dwds | |
- name: Run Puppeteer tests on macos | |
run: dart test test/puppeteer/extension_test.dart --no-retry --name="MV2 Debug Extension connected with SSE the debug info for a Dart app is saved in session storage" --platform vm | |
if: runner.os != 'Linux' | |
working-directory: dwds |