Skip to content

Commit

Permalink
Merge pull request #16 from swinton/default-width
Browse files Browse the repository at this point in the history
Add default value for width input
  • Loading branch information
Steve Winton authored Feb 3, 2021
2 parents d2aac04 + 3ed5001 commit 8df7c0f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: E2E

on:
[ workflow_dispatch ]
push:
branches:
- v1.x
workflow_dispatch:

jobs:
screenshot-ubuntu:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/screenshot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests

on:
[ push, workflow_dispatch ]
[ push, pull_request, workflow_dispatch ]

jobs:
screenshot-ubuntu:
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ inputs:
width:
description: 'Page width'
required: false
default: '1280'
outputs:
path:
description: 'The filesystem path to the website screenshot'
Expand Down

0 comments on commit 8df7c0f

Please sign in to comment.