2019-10-21 18:20:39 +02:00
|
|
|
name: Cypress
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2019-10-23 10:32:25 +02:00
|
|
|
test-e2e:
|
2019-10-21 18:20:39 +02:00
|
|
|
name: integration tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
|
|
|
|
2019-10-22 23:20:40 +02:00
|
|
|
- name: Install dependencies
|
2019-10-21 18:20:39 +02:00
|
|
|
run: npm ci
|
2019-10-22 23:20:40 +02:00
|
|
|
env:
|
|
|
|
HUSKY_SKIP_INSTALL: true
|
2019-10-21 18:20:39 +02:00
|
|
|
|
|
|
|
- name: run Cypress
|
2019-10-22 23:20:40 +02:00
|
|
|
run: npx run-p --race start cypress:run
|
2019-10-21 18:20:39 +02:00
|
|
|
env:
|
|
|
|
CI: true
|
2019-10-22 23:20:40 +02:00
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
2019-10-21 18:20:39 +02:00
|
|
|
DEBUG: commit-info,cypress:server:record
|
2019-10-22 23:20:40 +02:00
|
|
|
# https://docs.cypress.io/guides/guides/continuous-integration.html#Environment-variables
|
|
|
|
COMMIT_INFO_BRANCH: ${{ github.head_ref }}
|
|
|
|
COMMIT_INFO_AUTHOR: ${{ github.event.sender.login }}
|
|
|
|
COMMIT_INFO_SHA: ${{ github.event.after }}
|