Skip to content

Notificacions

Notificacions #127

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: Node.js CI
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
emulator_test:
name: Run all tests usign Firebase Emulator Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install Firebase CLI
run: npm install -g firebase-tools
working-directory: back_api
- name: Install dependencies
run: npm install
working-directory: back_api
- name: Start Firestore Emulator and run all the tests
run: firebase emulators:exec --project ${{ secrets.PROJECT_ID }} 'npm test'
working-directory: back_api
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
ENCRYPTION_IV: ${{ secrets.ENCRYPTION_IV }}
#Habría que actualizar dependencias en el package.json para que al hacer npm install se actualice todo correctamente