devbook_ts/.github/workflows/deploy.yml
Ruidy 9f01f46f75
Continuous Integration using Github Actions (#1)
* 🧪install cypress

run yarn cypress to open E2E test runner
run yarn test to tun unit tests

* 🔧 set cypress up

- define a baseUrl in cypress.json
- create a smoke.spec.js to check config.

* fix error in README
2020-05-12 10:15:56 +02:00

18 lines
421 B
YAML

name: Deploy
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Unit tests
run: yarn test --watchAll=false
- name: E2E tests
uses: cypress-io/github-action@v1
with:
start: yarn start
wait-on: 'http://localhost:3000'