Files
qqq-frontend-material-dashb…/.circleci/config.yml

51 lines
1.5 KiB
YAML

version: 2.1
orbs:
cypress: cypress-io/cypress@2
commands:
setup:
steps:
- checkout
- run:
name: write npmrc
command: |
echo "@kingsrook:registry=https://npm.pkg.github.com/" >> .npmrc
echo "NPM_TOKEN=${NPM_TOKEN}" >> .npmrc
echo "@OWNER:registry=https://npm.pkg.github.com/" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> .npmrc
- run:
name: copy .env
command: |
cp .circleci/env ./.env
cat ./.env
jobs:
setup-job:
executor: cypress/base-10
steps:
- setup
workflows:
build:
jobs:
- setup-job:
context: [ qqq-maven-registry-credentials ]
- cypress/install:
context: [ qqq-maven-registry-credentials ]
requires:
- setup-job
build: 'cp .circleci/env ./.env && npm run build' # run a custom app build step
- cypress/run:
context: [ qqq-maven-registry-credentials ]
requires:
- cypress/install
start: 'cp .circleci/env ./.env && npm run start' # start server before running tests
wait-on: 'https://localhost:3000'
## record: true # record results on Cypress Dashboard
## parallel: true # split all specs across machines
## parallelism: 4 # use 4 CircleCI machines to finish quickly
## group: 'all tests' # name this group "all tests" on the dashboard