[fix] Fix CI/CD

This commit is contained in:
ITQ
2024-04-01 00:11:37 +03:00
parent bc5d31e64a
commit 440560d91d
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -1,13 +1,13 @@
name: Django CI
name: Django CI/CD
on: [push, pull_request]
jobs:
migrations:
runs-on: self-hosted
runs-on: ubuntu-latest
env:
DJANGO_DEBUG: False
DJANGO_DEBUG: True
steps:
- uses: actions/checkout@v3
@@ -21,7 +21,7 @@ jobs:
run: cd backend/project && python manage.py makemigrations --check --dry-run
linting:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: migrations
steps:
@@ -40,7 +40,7 @@ jobs:
needs: linting
env:
DJANGO_DEBUG: False
DJANGO_DEBUG: True
steps:
- uses: actions/checkout@v3
@@ -54,7 +54,7 @@ jobs:
run: cd backend/project && python manage.py test
build_and_push:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: testing
steps:
+2 -2
View File
@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
linting:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -18,7 +18,7 @@ jobs:
run: npm run lint
build_and_push:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: linting
steps: