1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/.github/workflows/playwright-example.yml

33 lines
980 B
YAML
Raw Normal View History

2020-07-27 19:34:50 +09:00
name: playwright-example
on: workflow_dispatch
defaults:
run:
shell: bash
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
2020-07-27 20:33:17 +09:00
os: [windows-latest, macos-latest, ubuntu-20.04]
2020-07-27 20:15:39 +09:00
fail-fast: false
2020-07-27 19:34:50 +09:00
steps:
- uses: actions/checkout@v2
- id: yarn_cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn_cache.outputs.dir }}
key: ${{ matrix.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- run: yarn
working-directory: ./playwright
2020-07-27 20:33:17 +09:00
- if: startsWith(matrix.os, 'ubuntu-')
run: sudo apt-get install libwpewebkit-1.0-dev libgstreamer-plugins-bad1.0-0
2020-07-27 19:34:50 +09:00
- run: node main
working-directory: ./playwright
- if: success() || failure()
uses: actions/upload-artifact@v2
with:
2020-07-27 20:56:41 +09:00
name: ${{ matrix.os }}-screenshots
2020-07-27 19:34:50 +09:00
path: ./playwright/screenshots