feat: catch waitForSelector error #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "dev-test" | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
dev-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install puppeteer-headful | |
uses: mujo-code/puppeteer-headful@master | |
env: | |
CI: 'true' | |
- name: screenshots-ci-action | |
uses: flameddd/screenshots-ci-action@dev | |
with: | |
url: https://news.ycombinator.com/ | |
devices: iPhone 6,iPhone 6 landscape,Nexus 7,Pad Pro,Galaxy S III landscape,iPad Pro landscape | |
env: | |
TELE_CHAT_ID: ${{ secrets.TELE_CHAT_ID }} | |
TELE_BOT_TOKEN: ${{ secrets.TELE_BOT_TOKEN }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Download-screenshots | |
path: screenshots | |
test-filename-without-commit-hash: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install puppeteer-headful | |
uses: mujo-code/puppeteer-headful@master | |
env: | |
CI: 'true' | |
- name: screenshots-ci-action | |
uses: flameddd/screenshots-ci-action@dev | |
with: | |
url: https://www.google.com/ | |
devices: iPhone 6 | |
noCommitHashFileName: true # filename dont include commit hash | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Download-screenshots-without-commit-hash | |
path: screenshots |