Skip to content

Commit

Permalink
fix:minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharbansal22 committed Apr 1, 2024
1 parent a3d6599 commit 8af363c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/dev_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,24 @@ jobs:
run: npm install

- name: Create .env.development file
env:
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
ORIGIN: ${{ secrets.ORIGIN }}
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
TWILIO_SERVICE_SID: ${{ secrets.TWILIO_SERVICE_SID }}
run: |
echo "PORT=${{ secrets.PORT }}" >> .env.development
echo "MONGODB_URI=${{ secrets.MONGODB_URI }}" >> .env.development
echo "PORT=$PORT" >> .env.development
echo "MONGODB_URI=$MONGODB_URI" >> .env.development
echo "NODE_ENV=development" >> .env.development
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env.development
echo "ORIGIN=${{ secrets.ORIGIN }}" >> .env.development
echo "TWILIO_ACCOUNT_SID=${{ secrets.TWILIO_ACCOUNT_SID }}" >> .env.development
echo "TWILIO_AUTH_TOKEN=${{ secrets.TWILIO_AUTH_TOKEN }}" >> .env.development
echo "TWILIO_SERVICE_SID=${{ secrets.TWILIO_SERVICE_SID }}" >> .env.development
echo "JWT_SECRET=$JWT_SECRET" >> .env.development
echo "ORIGIN=$ORIGIN" >> .env.development
echo "TWILIO_ACCOUNT_SID=$TWILIO_ACCOUNT_SID" >> .env.development
echo "TWILIO_AUTH_TOKEN=$TWILIO_AUTH_TOKEN" >> .env.development
echo "TWILIO_SERVICE_SID=$TWILIO_SERVICE_SID" >> .env.development
- name: Run Jest tests
run: npm test
23 changes: 16 additions & 7 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ jobs:
run: npm install

- name: Create .env.development file
env:
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
ORIGIN: ${{ secrets.ORIGIN }}
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
TWILIO_SERVICE_SID: ${{ secrets.TWILIO_SERVICE_SID }}
run: |
echo "PORT=8000" >> .env.development
echo "MONGODB_URI=${{ secrets.MONGODB_URI }}" >> .env.development
echo "PORT=$PORT" >> .env.development
echo "MONGODB_URI=$MONGODB_URI" >> .env.development
echo "NODE_ENV=development" >> .env.development
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env.development
echo "ORIGIN=${{ secrets.ORIGIN }}" >> .env.development
echo "TWILIO_ACCOUNT_SID=${{ secrets.TWILIO_ACCOUNT_SID }}" >> .env.development
echo "TWILIO_AUTH_TOKEN=${{ secrets.TWILIO_AUTH_TOKEN }}" >> .env.development
echo "TWILIO_SERVICE_SID=${{ secrets.TWILIO_SERVICE_SID }}" >> .env.development
echo "JWT_SECRET=$JWT_SECRET" >> .env.development
echo "ORIGIN=$ORIGIN" >> .env.development
echo "TWILIO_ACCOUNT_SID=$TWILIO_ACCOUNT_SID" >> .env.development
echo "TWILIO_AUTH_TOKEN=$TWILIO_AUTH_TOKEN" >> .env.development
echo "TWILIO_SERVICE_SID=$TWILIO_SERVICE_SID" >> .env.development
- name: Login to Docker Hub
uses: docker/login-action@v1
Expand Down

0 comments on commit 8af363c

Please sign in to comment.