Skip to content

Merge pull request #3 from saracrz/feature/add-test-cases #12

Merge pull request #3 from saracrz/feature/add-test-cases

Merge pull request #3 from saracrz/feature/add-test-cases #12

Workflow file for this run

name: tests
on: push
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Test
run: npx jest --config=jest.config.js
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Cypress run
uses: cypress-io/github-action@v4
with:
build: npm run build
start: npm run start
wait-on: "http://localhost:3000"