Skip to content

Merge pull request #24 from exdevutem/patch/noticias #57

Merge pull request #24 from exdevutem/patch/noticias

Merge pull request #24 from exdevutem/patch/noticias #57

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 Tests
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.x]
steps:
- uses: actions/checkout@v2
- name: 'Setup Node.js'
uses: actions/setup-node@v1
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
env:
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' }}
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 }}