mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
use yml
This commit is contained in:
parent
385f5245b8
commit
4c1c2ee744
2 changed files with 31 additions and 32 deletions
1
.github/workflows/playwright-example.yml
vendored
1
.github/workflows/playwright-example.yml
vendored
|
@ -1 +0,0 @@
|
|||
../../playwright/workflow.yml
|
31
.github/workflows/playwright-example.yml
vendored
Normal file
31
.github/workflows/playwright-example.yml
vendored
Normal 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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue