Skip to content

Commit

Permalink
Merge pull request #22 from exdevutem/patch/arreglos
Browse files Browse the repository at this point in the history
patch: arreglos y mejoras
  • Loading branch information
exdevutembot authored Jun 11, 2024
2 parents 4999444 + eaf4d5f commit 78add56
Show file tree
Hide file tree
Showing 51 changed files with 866 additions and 413 deletions.
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

0 comments on commit 78add56

Please sign in to comment.