Running Multiple Processes at the Same Time

I need to run multiple scripts for my tests and I can’t figure out how to have them run at the same time.

My current config:
language: node_js
node_js:
- 12.19.0
install:
- yarn
script:
- yarn build
- yarn start
- yarn test

The last 2 scripts need to happen together. I need to start the application to run the tests, then I need to break that process. Right now, the start script (obviously) just runs until the timeout limit.

I think something like this is the target I’m gunning for:
language: node_js
node_js:
- 12.19.0
install:
- yarn
before_script:
- yarn build
- yarn start
script:
- yarn test
after_script:
- somehow break yarn start process

While somehow running the tests after the application is started. And then I need to figure out how to break that process afterwards.

Solved it:
language: node_js
node_js:
- 12.19.0
install:
- yarn
- cypress install
script:
- yarn build
- yarn start & yarn test