1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
This commit is contained in:
Nebel 2020-07-27 19:34:50 +09:00
parent 385f5245b8
commit 4c1c2ee744
2 changed files with 31 additions and 32 deletions

View file

@ -1 +0,0 @@
../../playwright/workflow.yml

View file

@ -0,0 +1,31 @@
name: playwright-example
on: workflow_dispatch
defaults:
run:
shell: bash
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
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
- run: node main
working-directory: ./playwright
env:
PLAYWRIGHT_RUNNER: ${{ matrix.os }}
- if: success() || failure()
uses: actions/upload-artifact@v2
with:
name: screenshots
path: ./playwright/screenshots

View file

@ -1,31 +0,0 @@
name: playwright-example
on: workflow_dispatch
defaults:
run:
shell: bash
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
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
- run: node main
working-directory: ./playwright
env:
PLAYWRIGHT_RUNNER: ${{ matrix.os }}
- if: success() || failure()
uses: actions/upload-artifact@v2
with:
name: screenshots
path: ./playwright/screenshots