Skip to content

Instantly share code, notes, and snippets.

@DanielNetzeriAm
Last active November 28, 2019 19:27
version: 0.1
frontend:
phases:
preBuild:
commands:
- npm install
build:
commands:
# on 'master' branch create a new release, bump version, create changelog and commit it.
- if [ "${AWS_BRANCH}" = "master" ]; then npm run release; fi
- npm run build
artifacts:
baseDirectory: dist/console
files:
- '**/*'
cache:
paths:
- node_modules/**/*
test:
phases:
preTest:
commands:
- npm install
- npm install wait-on
- npm install mocha@5.2.0 mochawesome mochawesome-merge mochawesome-report-generator
- 'npm start & npx wait-on http://localhost:3869'
test:
commands:
- npm run test
- npx snyk test
- 'npx cypress run --reporter mochawesome --reporter-options "reportDir=cypress/report/mochawesome-report,overwrite=false,html=false,json=true,timestamp=mmddyyyy_HHMMss"'
postTest:
commands:
- npx mochawesome-merge --reportDir cypress/report/mochawesome-report > cypress/report/mochawesome.json
- npx snyk monitor --org=vonage-5p5
artifacts:
baseDirectory: cypress
configFilePath: '**/mochawesome.json'
files:
- '**/*.png'
- '**/*.mp4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment