diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index eef7adb..a53da2c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,7 +1,10 @@ name: E2E on: - [ workflow_dispatch ] + push: + branches: + - v1.x + workflow_dispatch: jobs: screenshot-ubuntu: diff --git a/.github/workflows/screenshot.yml b/.github/workflows/screenshot.yml index 5805e90..18f0770 100644 --- a/.github/workflows/screenshot.yml +++ b/.github/workflows/screenshot.yml @@ -1,7 +1,7 @@ name: Tests on: - [ push, workflow_dispatch ] + [ push, pull_request, workflow_dispatch ] jobs: screenshot-ubuntu: @@ -69,3 +69,20 @@ jobs: destination: github-com-swinton-screenshot-website-${{ matrix.os }}-${{ matrix.width }}.png full-page: true width: ${{ matrix.width }} + + screenshot-no-width: + name: Screenshot (no width) + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Capture Screenshot + id: screenshot + uses: ./ + with: + source: https://github.com/swinton/screenshot-website + destination: github-com-swinton-screenshot-website-ubuntu-latest-default.png + full-page: true diff --git a/action.yml b/action.yml index 170ea40..7a1d4e8 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,7 @@ inputs: width: description: 'Page width' required: false + default: '1280' outputs: path: description: 'The filesystem path to the website screenshot'