I have a Monorepo which contains a front-end app and a node.js API. I would like to run both the front-end app and the node.js API, in order to run some end-to-end tests. However I can not figure out how to run these two applications before running the tests. Here is my actions file so far.
name: Test Client
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Initial Setup
run: |
npm install yarn -g
- name: yarn install, build, and test
working-directory: client-app
run: |
yarn install
yarn build
yarn test
env:
CI: true
I would like to run an API in a different directory, before running the client-app tests. Is this possible without using a third-party service?