attempt to run cypress tests in ci w/ burnettk
This commit is contained in:
parent
ab6a3fdb2b
commit
305e5a9073
|
@ -32,3 +32,25 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: pr_number
|
name: pr_number
|
||||||
path: pr/
|
path: pr/
|
||||||
|
|
||||||
|
cypress-run:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
path: spiffworkflow-frontend
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with: sartography/spiffworkflow-backend
|
||||||
|
path: spiffworkflow-backend
|
||||||
|
- name: start_backend
|
||||||
|
working-directory: ./spiffworkflow-backend
|
||||||
|
run: ./bin/build_and_run_with_docker_compose
|
||||||
|
- name: start_frontend
|
||||||
|
working-directory: ./spiffworkflow-frontend
|
||||||
|
run: ./bin/build_and_run_with_docker_compose
|
||||||
|
# Install NPM dependencies, cache them correctly
|
||||||
|
# and run all Cypress tests
|
||||||
|
- name: Cypress run
|
||||||
|
uses: cypress-io/github-action@v4
|
||||||
|
working-directory: ./spiffworkflow-frontend
|
||||||
|
|
|
@ -21,3 +21,5 @@
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
cypress/videos
|
||||||
|
|
|
@ -7,4 +7,9 @@ function error_handler() {
|
||||||
trap 'error_handler ${LINENO} $?' ERR
|
trap 'error_handler ${LINENO} $?' ERR
|
||||||
set -o errtrace -o errexit -o nounset -o pipefail
|
set -o errtrace -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
./node_modules/.bin/cypress open --e2e --browser chrome
|
command="${1:-}"
|
||||||
|
if [[ -z "$command" ]]; then
|
||||||
|
command=open
|
||||||
|
fi
|
||||||
|
|
||||||
|
./node_modules/.bin/cypress "$command" --e2e --browser chrome
|
||||||
|
|
|
@ -83,4 +83,3 @@ export default function ProcessGroups() {
|
||||||
return (<></>)
|
return (<></>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue