Skip to content

Instantly share code, notes, and snippets.

@warrenday
Last active July 24, 2020 16:41
Show Gist options
  • Select an option

  • Save warrenday/17a02ac384783c7329ffd166282fb067 to your computer and use it in GitHub Desktop.

Select an option

Save warrenday/17a02ac384783c7329ffd166282fb067 to your computer and use it in GitHub Desktop.
name: Test App
on: [push]
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.2.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: Run API in background
working-directory: packages/api
run: |
yarn install
yarn mock &
env:
PORT: 4000
- name: Run and test app
working-directory: packages/client
run: |
yarn install
yarn build
yarn start &
yarn test
yarn cypress:run
env:
CI: true
API_URI: http://localhost:4000/graphql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment