Skip to content

Commit

Permalink
mgrok on test app in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Nov 23, 2023
1 parent 6b8a856 commit f02d291
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:

env:
CI: true
VUE_APP_PUBLIC_KEY: public_X140up/8w//8965Hp/pI8VCM6QY=
VUE_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
VUE_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
VUE_APP_URL_ENDPOINT: https://ik.imagekit.io/igi7ywjzdi
VUE_APP_URL_ENDPOINT: ${{ secrets.ik_url_endpoint }}

e2e:
runs-on: ubuntu-latest
Expand All @@ -64,14 +64,19 @@ jobs:
- name: Build Test app
run: |
cd tests/test-app
echo VUE_APP_URL_ENDPOINT = https://ik.imagekit.io/igi7ywjzdi > .env;
echo VUE_APP_PUBLIC_KEY = public_X140up/8w//8965Hp/pI8VCM6QY= >> .env;
echo VUE_APP_URL_ENDPOINT = ${{ secrets.ik_url_endpoint }} > .env;
echo VUE_APP_PUBLIC_KEY = ${{ secrets.ik_public_key }} >> .env;
echo VUE_APP_AUTHENTICATION_ENDPOINT = 'http://localhost:3001/auth' >> .env;
npm install
npm run build
cd server
echo VUE_APP_PRIVATE_KEY = ${{ secrets.ik_private_key }} > .env;
npm install
- name: Start ngrok with NGROK_OPTS
run: npx ngrok http 3000 -authtoken $NGROK_AUTH_TOKEN -inspect=false -log=stdout -host-header="localhost:3000" -subdomain=blessed-monthly-mongoose.ngrok-free.app
env:
NGROK_OPTS: "--ngrok-args=--skip-browser-update"

- name: Start the app for Cypress
timeout-minutes: 5
Expand All @@ -97,7 +102,7 @@ jobs:
# env:
# DEBUG: 'cypress:server:browsers:electron'
# CI: true
# VUE_APP_PUBLIC_KEY: public_X140up/8w//8965Hp/pI8VCM6QY=
# VUE_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
# VUE_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
# VUE_APP_URL_ENDPOINT: https://ik.imagekit.io/igi7ywjzdi
# VUE_APP_URL_ENDPOINT: ${{ secrets.ik_url_endpoint }}
# VUE_APP_AUTHENTICATION_ENDPOINT: http://localhost:3001/auth

0 comments on commit f02d291

Please sign in to comment.