Skip to content

testing new CICD

testing new CICD #338

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Demo
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
environment: Demo
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
# Install Install & Test
- name: Test
run: yarn test
# Install Build
- name: Build
run: yarn build
# Install serverless
# - name: Install Serverless
# run: yarn global add serverless
# Deploy to QA
- name: Deploy
run: yarn simple-deploy --stage=${{ secrets.NODE_ENV }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SLS_DEBUG: 1
NODE_ENV: ${{ secrets.NODE_ENV }}
SWAGGER: ${{ secrets.SWAGGER }}
UI_URL: ${{ secrets.UI_URL }}
UI_LOGIN_REDIRECT_PATH: /signin-oidc
UI_LOGOUT_REDIRECT_PATH: /signout-oidc
UI_REFRESH_REDIRECT_PATH: /silentrenew
PROTOCOL: ${{ secrets.PROTOCOL }}
MONGO: ${{ secrets.MONGO }}
PERSIST_HTTP_ERRORS: false
WRITE_LOGS_TO_DB: false
SINGLE_USE_IAT: true
GROUP_SECURE_EXPIRES: ${{ secrets.GROUP_SECURE_EXPIRES }}
COOKIE_KEYS: ${{ secrets.COOKIE_KEYS }}
ALLOW_ROOT_CREATION: false
ROOT_EMAIL: ${{ secrets.ROOT_EMAIL }}
ONE_TIME_PERSONAL_ROOT_CREATION_KEY: ${{ secrets.ONE_TIME_PERSONAL_ROOT_CREATION_KEY }}
FULL_SUPER_CONTROL: true
OPEN_GROUP_REG: ${{ secrets.OPEN_GROUP_REG }}
ROOT_COMPANY_NAME: United Effects
INIT_ROOT_PRIMARY_DOMAIN: https://unitedeffects.com
INIT_ROOT_PRIMARY_TOS: https://unitedeffects.com/tos
INIT_ROOT_PRIMARY_POLICY: https://unitedeffects.com/privacy
PLATFORM_NAME: UE Core
UI_WHITE_LIST: ${{ secrets.UI_WHITE_LIST }}
UI_CORE_AUDIENCE_ORIGIN: ${{ secrets.UI_CORE_AUDIENCE_ORIGIN }}
CORE_SCOPES: "core:read,core:write,core:delete,core:update,api:read,api:write,api:delete,api:update"
RESTRICTED_SCOPES: "{d}^core:publish::([A-Za-z0-9]*_){2}[A-Za-z0-9]+$,{d}^core:subscribe::([A-Za-z0-9]*_){2}[A-Za-z0-9]+$"
STATIC_ASSETS: "https://assets.uecore.io/ueauth/"
CUSTOM_FONTS_URL: ${{ secrets.UE_FONTS }}
ROOT_GROUP_REGISTRATION_UI_URL: "https://qa.ueauth.io"
UI_PKCE_REQUIRED: true
DEFAULT_UI_SKIN_GRADIENT_LOW: "#131525"
DEFAULT_UI_SKIN_GRADIENT_HIGH: "#1D2035"
EVENT_EMITTER_CLEAN_SENSITIVE: true
ACCESS_OBJECT_SIZE_LIMIT: 8000
SECURITY_FRAME_ANCESTORS: "*"
CUSTOM_DOMAIN_PROXY_HEADER: x-host
INIT_AG_WITH_STREAMS: true