Skip to content

LF-3526 : Added the minHeight: 150px to the management plan card #1618

LF-3526 : Added the minHeight: 150px to the management plan card

LF-3526 : Added the minHeight: 150px to the management plan card #1618

Workflow file for this run

name: Run cypress happy path test
on:
workflow_dispatch:
# pull_request:
# branches:
# - integration
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 30
env:
JWT_INVITE_SECRET: ${{secrets.JWT_INVITE_SECRET}}
JWT_RESET_SECRET: ${{secrets.JWT_RESET_SECRET}}
JWT_SCHEDULER_SECRET: ${{secrets.JWT_SCHEDULER_SECRET}}
JWT_SECRET: ${{secrets.JWT_SECRET}}
TEST_USER: ${{secrets.TEST_USER}}
TEST_USER_ID: ${{secrets.TEST_USER_ID}}
DEV_DATABASE_HOST: localhost
DEV_DATABASE: pg-litefarm
DEV_DATABASE_USER: postgres
DEV_DATABASE_PASSWORD: postgres
GOOGLE_API_KEY: ${{secrets.VITE_GOOGLE_MAPS_API_KEY}}
VITE_GOOGLE_MAPS_API_KEY: ${{secrets.VITE_GOOGLE_MAPS_API_KEY}}
VITE_WEATHER_API_KEY: ${{secrets.VITE_WEATHER_API_KEY}}
NODE_ENV: development
strategy:
matrix:
node-version: [16.15.0]
steps:
- uses: ikalnytskyi/action-setup-postgres@v3
with:
username: ${{env.DEV_DATABASE_USER}}
password: ${{env.DEV_DATABASE_PASSWORD}}
database: ${{env.DEV_DATABASE}}
port: 5432
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Run API in background
working-directory: packages/api
run: |
npm ci && cd ../shared && npm ci
cd ../api && npm run migrate:dev:db
npm run start &
env:
PORT: 5000
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Run and test app
env:
VITE_WEATHER_API_KEY: ${{secrets.VITE_WEATHER_API_KEY}}
VITE_ENV: development
VITE_GOOGLE_OAUTH_CLIENT_ID: ${{secrets.VITE_GOOGLE_OAUTH_CLIENT_ID}}
VITE_DO_BUCKET_NAME: litefarm
NODE_ENV: development
VITE_API_URL: http://localhost:5000
CYPRESS_RECORD_KEY: "2630f414-4914-48b0-907d-aa3a9cc6a30b"
uses: cypress-io/[email protected]
with:
working-directory: packages/webapp
install-command: pnpm install --config.auto-install-peers=true --no-frozen-lockfile --force
install: true
start: pnpm dev
wait-on: "http://localhost:3000"
wait-on-timeout: 120
headed: true
browser: chrome
record: true
parallel: true
group: "UI - Chrome"
spec: cypress/e2e/happyPath.spec.js
- name: set code coverage badge
run: npx -p check-code-coverage update-badge --from '${GITHUB_WORKSPACE}/packages/webapp/coverage/coverage-summary.json'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: code-coverage-report
working-directory: packages/webapp
path: coverage/coverage-summary.json
- name: Set code coverage commit status
continue-on-error: true
working-directory: packages/webapp
run: npx set-gh-status
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GH_SHA: ${{ github.event.after }}