Skip to content

Tests de integracion: coleccion y workflow actualizado #5

Tests de integracion: coleccion y workflow actualizado

Tests de integracion: coleccion y workflow actualizado #5

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Unit and integration tests
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- run: docker compose -f docker-compose.dev.yaml up -d
- run: sleep 3
- run: npm start
- run: npm install -g newman
- run: newman run cities.postman_collection.json