-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.08 KB
/
back-end-tests-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Back End Tests Develop
run-name: ${{ github.actor }} is running Back End Test Cases
on:
push:
branches: [develop]
jobs:
Back-End-Tests:
runs-on: ubuntu-latest
steps:
- name: Checkout GitCode
uses: actions/checkout@v4
- name: create env file server
run: |
cd ./server
touch .env
echo MONGODB_URI='${{ secrets.MONGODB_URI }}' >> .env
echo PORT=${{ secrets.PORT }} >> .env
echo CLIENT_URL=${{ secrets.CLIENT_URL }} >> .env
echo JWT_SECRET=${{ secrets.JWT_SECRET }} >> .env
echo CLIENT_ID=${{ secrets.CLIENT_ID }} >> .env
echo CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} >> .env
echo REFRESH_TOKEN=${{ secrets.REFRESH_TOKEN }} >> .env
- name: create env file client
run: |
cd ./client
touch .env
echo REACT_APP_SERVER_URL=${{ secrets.REACT_APP_SERVER_URL }} >> .env
echo JWT_SECRET=${{secrets.JWT_SECRET}} >> .env
- name: Run Tests
run: |
cd ./server
npm ci
npm test