mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-15 20:16:39 +02:00
4acd6d6ca8
* run actions on dependencies change * add bundlesize token to master run * fix bundlesize commit number * add cypress env * also run on - '.browserslistrc' changes * update node-sass to allow install on Node 12 and trigger events * use script * add group * skip husky on cypress * upgrade csso dependency to make it trim sourcemaps * fix run-p / run-s use * remove commited assets on check * commit assets * remove cypress record * restore recording * reduce bundlesize limits * try to specify key implicity * remove Cypress recording * restore build in bundlesize * regenerate package-json.lock * commit generated assets * handle no-js case in lint * fix lint error
33 lines
864 B
YAML
33 lines
864 B
YAML
name: Cypress
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
run-e2e:
|
|
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
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
env:
|
|
HUSKY_SKIP_INSTALL: true
|
|
|
|
- name: run Cypress
|
|
run: npx run-p --race start cypress:run
|
|
env:
|
|
CI: true
|
|
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 }}
|