Skip to content

Fix cypress run #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/cypress-run.yml

This file was deleted.

40 changes: 38 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['12', '14']
node: ["12", "14"]
name: Tests (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
Expand All @@ -39,3 +39,39 @@ jobs:
run: yarn install
- name: Run linter
run: yarn run lint

cypress-run:
runs-on: ubuntu-latest
# Browser on which the tests are run
container: cypress/browsers:node12.18.3-chrome87-ff82
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
./node_modules
key: ${{ hashFiles('yarn.lock') }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Install dependencies
run: yarn --dev && yarn --cwd ./playgrounds/html
- name: Browser tests
uses: cypress-io/github-action@v2
with:
# Your starting script
start: yarn playground
# Creates and uploads GitHub artifacts in case of failure
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-videos
path: cypress/videos
3 changes: 2 additions & 1 deletion bors.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
status = [
'linter-check',
'Tests (Node.js 12)',
'Tests (Node.js 14)'
'Tests (Node.js 14)',
'cypress-run'
]
# 1 hour timeout
timeout-sec = 3600