Skip to content

JacobNiyazov is running Back End Test Cases #86

JacobNiyazov is running Back End Test Cases

JacobNiyazov is running Back End Test Cases #86

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