|
|
|
@ -14,9 +14,19 @@ jobs:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: 16
|
|
|
|
|
node-version: '14'
|
|
|
|
|
- name: Instalar dependencias
|
|
|
|
|
run: npm install
|
|
|
|
|
run: npm install --no-audit --no-fund --no-optional
|
|
|
|
|
- name: Lint
|
|
|
|
|
run: npm run eslint
|
|
|
|
|
- name: Build
|
|
|
|
|
run: npm run build
|
|
|
|
|
- name: Test
|
|
|
|
|
run: npm test
|
|
|
|
|
- name: E2E tests
|
|
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
|
with:
|
|
|
|
|
command: npm run test:e2e
|
|
|
|
|
start: npm run start-test
|
|
|
|
|
wait-on: http://localhost:5000
|
|
|
|
|
|
|
|
|
|