Skip to content

Commit 2bfad28

Browse files
committed
Create .env for cypress tests
1 parent 759a89b commit 2bfad28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pipeline.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ jobs:
5050
run: npm run lint
5151
- name: test
5252
run: npm test
53-
- name: install backend dependencies (for cypress to run)
53+
- name: install backend dependencies, create .env (for cypress to run)
5454
run: |
5555
cd ../backend
56+
touch .env
57+
echo DEV_MONGODB_URI=${{ secrets.DEV_MONGODB_URI }} >> .env
58+
echo CLOUDINARY_NAME=${{ secrets.CLOUDINARY_NAME }} >> .env
59+
echo CLOUDINARY_API_KEY=${{ secrets.CLOUDINARY_API_KEY }} >> .env
60+
echo CLOUDINARY_API_SECRET=${{ secrets.CLOUDINARY_API_SECRET }} >> .env
5661
npm install
5762
- name: cypress tests
5863
uses: cypress-io/github-action@v2

0 commit comments

Comments
 (0)