diff --git a/.github/workflows/playwright-example.yml b/.github/workflows/playwright-example.yml deleted file mode 120000 index 45fd05d..0000000 --- a/.github/workflows/playwright-example.yml +++ /dev/null @@ -1 +0,0 @@ -../../playwright/workflow.yml \ No newline at end of file diff --git a/.github/workflows/playwright-example.yml b/.github/workflows/playwright-example.yml new file mode 100644 index 0000000..83e3434 --- /dev/null +++ b/.github/workflows/playwright-example.yml @@ -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 diff --git a/playwright/workflow.yml b/playwright/workflow.yml deleted file mode 100644 index 83e3434..0000000 --- a/playwright/workflow.yml +++ /dev/null @@ -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