mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-08 16:46:35 +02:00
00e53f76ee
* Deploy on published release * Run build and test on merge to master * Update release drafter template * Update title of releases * Testing cypress fix * Pass group to --group flag
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: End-to-end tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'src/**'
|
|
- 'package-lock.json'
|
|
- '.browserslistrc'
|
|
- '.babelrc'
|
|
- 'webpack.config.*'
|
|
- 'public/test/**'
|
|
- 'cypress/**'
|
|
- '.github/workflows/cypress.yml'
|
|
|
|
jobs:
|
|
test-e2e:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
env:
|
|
HUSKY_SKIP_INSTALL: true
|
|
|
|
- name: run Cypress CI
|
|
run: npx run-p --race start cypress:ci
|
|
env:
|
|
CI: true
|
|
TERM: xterm-256color
|
|
NODE_ENV: production # prevent watching
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
DEBUG: commit-info,cypress:server:record
|
|
# 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 }}
|