mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +00:00
* 🧪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
18 lines
421 B
YAML
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'
|