Skip to content

patch: arreglos y mejoras #51

patch: arreglos y mejoras

patch: arreglos y mejoras #51

Workflow file for this run

name: Node Test
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
name: Tests
environment: api-mi-utem
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: 'Setup Node.js'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: 'Yarn Install'
run: yarn install
- name: 'Yarn Test'
run: yarn test
env:
NODE_ENV: test
SENTRY_URL: ${{ secrets.SENTRY_URL }}
UTEM_URL: ${{ vars.UTEM_URL || 'https://www.utem.cl' }}
SSO_UTEM_URL: ${{ vars.SSO_UTEM_URL || 'https://sso.utem.cl' }}
MI_UTEM_URL: ${{ vars.MI_UTEM_URL || 'https://mi.utem.cl' }}
PASAPORTE_UTEM_URL: ${{ vars.PASAPORTE_UTEM_URL || 'https://pasaporte.utem.cl' }}
ACADEMIA_UTEM_URL: ${{ vars.ACADEMIA_UTEM_URL || 'https://academia.utem.cl' }}
ACADEMIA_SSO_REALM: ${{ vars.ACADEMIA_SSO_REALM || 'prod' }}
SIGA_API_URL: ${{ vars.SIGA_API_URL || 'https://siga.utem.cl/servicios' }}
FCM_SERVER_KEY: ${{ secrets.FCM_SERVER_KEY }}
SISEI_KEY: ${{ secrets.SISEI_KEY }}
ACADEMIA_CLIENT_SECRET: ${{ secrets.ACADEMIA_CLIENT_SECRET }}
FIREBASE_ADMINSDK_PROJECT_ID: ${{ vars.FIREBASE_ADMINSDK_PROJECT_ID }}
FIREBASE_ADMINSDK_CLIENT_EMAIL: ${{ vars.FIREBASE_ADMINSDK_CLIENT_EMAIL }}
FIREBASE_ADMINSDK_PRIVATE_KEY: ${{ secrets.FIREBASE_ADMINSDK_PRIVATE_KEY }}
USER_EMAIL: ${{ vars.USER_EMAIL }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}