Skip to content

Update automations limitation #2200

Update automations limitation

Update automations limitation #2200

Workflow file for this run

name: Test Frontend
on:
pull_request:
paths:
- 'frontend/**'
jobs:
test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create env file
run: |
touch .env.override.local
echo CROWD_SENDGRID_KEY=${{ secrets.CROWD_SENDGRID_KEY }} >> .env.override.local
echo CROWD_SENDGRID_EMAIL_FROM=${{ secrets.CROWD_SENDGRID_EMAIL_FROM }} >> .env.override.local
echo CROWD_SENDGRID_NAME_FROM=${{ secrets.CROWD_SENDGRID_NAME_FROM }} >> .env.override.local
echo CROWD_SENDGRID_TEMPLATE_EMAIL_ADDRESS_VERIFICATION=${{ secrets.CROWD_SENDGRID_TEMPLATE_EMAIL_ADDRESS_VERIFICATION }} >> .env.override.local
echo CROWD_SENDGRID_TEMPLATE_INVITATION=${{ secrets.CROWD_SENDGRID_TEMPLATE_INVITATION }} >> .env.override.local
echo CROWD_SENDGRID_TEMPLATE_PASSWORD_RESET=${{ secrets.CROWD_SENDGRID_TEMPLATE_PASSWORD_RESET }} >> .env.override.local
echo CROWD_SENDGRID_TEMPLATE_WEEKLY_ANALYTICS=${{ secrets.CROWD_SENDGRID_TEMPLATE_WEEKLY_ANALYTICS }} >> .env.override.local
echo CROWD_SENDGRID_WEEKLY_ANALYTICS_UNSUBSCRIBE_GROUP_ID=${{ secrets.CROWD_SENDGRID_WEEKLY_ANALYTICS_UNSUBSCRIBE_GROUP_ID }} >> .env.override.local
working-directory: backend
- name: Start scaffold
run: ./cli scaffold up
working-directory: scripts
- name: Start services
run: ./cli service api restart && ./cli service nodejs-worker restart && ./cli service job-generator restart && ./cli service frontend restart
working-directory: scripts
# - name: Cypress run
# uses: cypress-io/github-action@v4
# with:
# env: MAILOSAUR_API_KEY=${{ secrets.MAILOSAUR_API_KEY }},MAILOSAUR_SERVER_ID=${{ secrets.MAILOSAUR_SERVER_ID }}
# working-directory: 'frontend'
# browser: chrome
# headed: true
#
# - name: Upload screenshots
# uses: actions/upload-artifact@v2
# if: failure()
# with:
# name: cypress-screenshots
# path: frontend/cypress/screenshots
#
# - name: Upload video
# uses: actions/upload-artifact@v2
# if: always()
# with:
# name: cypress-videos
# path: frontend/cypress/videos