Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch: arreglos y mejoras #22

Merged
merged 29 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
aada9d8
patch: orden de archivos de test
Im-Fran Apr 22, 2024
b610dd5
patch: reparado login y reducido código
Im-Fran Apr 23, 2024
d7afc0d
patch: arreglado tests, ahora se ejecutan sin problemas
Im-Fran Apr 29, 2024
9f40403
patch: arreglos a la beca de alimentación y agregado test de Academia…
Im-Fran Apr 30, 2024
fdd9141
patch: agregado tipo de respuesta
Im-Fran May 2, 2024
ea3fd26
patch: agregado reino del sso a los tests
Im-Fran May 2, 2024
affe6f0
patch: mejorado workflow de yarn
Im-Fran May 3, 2024
8a06a0e
patch: se elimina comando echo
Im-Fran May 3, 2024
1021918
patch: instalado y actualizado sentry
Im-Fran May 3, 2024
ed6b300
patch: se extrae el método para iniciar sentry
Im-Fran May 3, 2024
7bd0e74
patch: optimización de codigo
Im-Fran May 3, 2024
1684b46
patch: actualizado workflow y mejoras de código
Im-Fran May 3, 2024
2f16780
patch: arreglado sentry no recibe errores
Im-Fran May 3, 2024
be1810d
patch: mejoras en recepción de errores de sentry
Im-Fran May 3, 2024
fed3972
patch: agregado identificación de usuario mediante siga token
Im-Fran May 3, 2024
255336b
patch: agregado más datos de usuario para sentry
Im-Fran May 3, 2024
cacd4e0
patch: actualizado y mejorado cliente de openid
Im-Fran May 4, 2024
9843a7f
patch: arreglado login academia
Im-Fran May 4, 2024
c062adb
patch: se agrega timezone a algunas condiciones
Im-Fran May 4, 2024
9c6b890
patch: arreglos a la beca de alimentación y tests
Im-Fran May 6, 2024
e95621c
patch: reparado condicionales de beca de alimentación
Im-Fran May 6, 2024
9c5a195
patch: arreglos a la beca de alimentación
Im-Fran May 6, 2024
ec020f2
patch: agregado datos de metadata para logging de error
Im-Fran May 6, 2024
2e3263d
patch: agregado más tests y reparados errores
Im-Fran May 6, 2024
b1582b4
patch: se agrega time zone
Im-Fran May 6, 2024
05b055e
patch: se agregan timeouts a los tests
Im-Fran May 6, 2024
750fd7e
Merge branch 'dev' into patch/arreglos
Im-Fran May 13, 2024
7a7752d
Merge branch 'refs/heads/dev' into patch/arreglos
Im-Fran May 17, 2024
eaf4d5f
patch: orden de clases y archivos
Im-Fran May 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
PORT=3000
LOG_LEVEL=info

UTEM_URL="https://www.utem.cl"
SSO_UTEM_URL="https://sso.utem.cl"
ACADEMIA_SSO_REALM=prod

UTEM_URL="https://www.utem.cl"
MI_UTEM_URL="https://mi.utem.cl"
PASAPORTE_UTEM_URL="https://pasaporte.utem.cl"
ACADEMIA_UTEM_URL="https://academia.utem.cl"
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# 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 Tests
name: Node Test

on:
push:
Expand All @@ -13,32 +10,35 @@ jobs:
build:
name: Tests
environment: api-mi-utem
env:
TZ: America/Santiago
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [18, 20]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 'Setup Node.js'
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 'Install yarn'
run: npm install -g yarn
- name: 'yarn install and test'
run: |
echo "${{ secrets.FIREBASE_ADMINSDK_PROJECT_ID }}"
yarn
yarn test
cache: 'yarn'
- name: 'Yarn Install'
run: yarn install
- name: 'Yarn Test'
run: yarn test
env:
NODE_ENV: test
SENTRY_URL: ${{ secrets.SENTRY_URL }}
NOTICIAS_UTEM_URL: ${{ vars.NOTICIAS_UTEM_URL || 'https://noticias.utem.cl' }}
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 }}
Expand Down
Loading