mirror of
https://github.com/microsoft/playwright-java.git
synced 2026-04-01 20:32:49 +00:00
92 lines
2.6 KiB
YAML
92 lines
2.6 KiB
YAML
name: Build & Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
jobs:
|
|
dev:
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
browser: [chromium, firefox, webkit]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.m2
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: ${{ runner.os }}-m2
|
|
- name: Download drivers
|
|
shell: bash
|
|
run: scripts/download_driver_for_all_platforms.sh
|
|
- name: Build with Maven
|
|
run: mvn -B package -D skipTests --no-transfer-progress
|
|
- name: Run tests
|
|
run: mvn test --no-transfer-progress
|
|
env:
|
|
BROWSER: ${{ matrix.browser }}
|
|
- name: Test Spring Boot Starter
|
|
shell: bash
|
|
env:
|
|
BROWSER: ${{ matrix.browser }}
|
|
run: |
|
|
mvn -B install -D skipTests --no-transfer-progress
|
|
cd tools/test-spring-boot-starter
|
|
mvn package -D skipTests --no-transfer-progress
|
|
java -jar target/test-spring-boot*.jar
|
|
|
|
stable:
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
browser-channel: [chrome]
|
|
include:
|
|
- os: windows-latest
|
|
browser-channel: msedge
|
|
- os: macos-latest
|
|
browser-channel: msedge
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- name: Install Media Pack
|
|
if: matrix.os == 'windows-latest'
|
|
shell: powershell
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.m2
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: ${{ runner.os }}-m2
|
|
- name: Download drivers
|
|
shell: bash
|
|
run: scripts/download_driver_for_all_platforms.sh
|
|
- name: Build with Maven
|
|
run: mvn -B package -D skipTests --no-transfer-progress
|
|
- name: Run tests
|
|
run: mvn test --no-transfer-progress
|
|
env:
|
|
BROWSER: chromium
|
|
BROWSER_CHANNEL: ${{ matrix.browser-channel }}
|