Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel81 authored May 27, 2024
1 parent cbb7efb commit 210e4e4
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,29 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v3
- name: Test

# Backend Tests and Deployment
- name: Test Backend
run: |
cd backend
echo "Running tests..."
- name: Deploy
# Only run this step if the branch is main
echo "Running backend tests..."
- name: Deploy Backend
if: github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.BACKEND_RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$deploy_url"
# Frontend Tests and Deployment
- name: Test Frontend
run: |
cd frontend
echo "Running frontend tests..."
- name: Deploy Frontend
if: github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
deploy_url: ${{ secrets.FRONTEND_RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$deploy_url"

0 comments on commit 210e4e4

Please sign in to comment.