Skip to content

Commit

Permalink
fix cp command
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkame committed Mar 1, 2020
1 parent 6cc261e commit 9edc31e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/screenshot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: screenshot
name: screenshot

on: push

Expand All @@ -7,12 +7,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- run: cp ui-test\dummy.json dist\data/\data.json
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Cache dependencies
uses: actions/cache@v1
with:
Expand All @@ -24,11 +23,10 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate
- run: cp ui-test/dummy.json dist/data/data.json
- run: pip install selenium
- run: (python -m http.server --directory ./dist 8000 &) ; python ./ui-test/screenshot.py
- name: Upload screenshot
uses: actions/upload-artifact@v1
with:
name: screenshots
path: screenshots
path: screenshots
2 changes: 1 addition & 1 deletion ui-test/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
driver.set_window_size(size[0], size[1])
for path in PATHS:
driver.get("http://localhost:8000"+path)
driver.save_screenshot('screenshots/'+browser+'_'+str(size[0])+'x'+str(size[1])+'_'+path.replace('/', '_')+'.png')
driver.save_screenshot('screenshots/'+browser+'_'+str(size[0])+'x'+str(size[1])+'_'+path.replace('/', '_')+'.png')

0 comments on commit 9edc31e

Please sign in to comment.