[fix] Fix CI/CD
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
name: Django CI
|
name: Django CI/CD
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
migrations:
|
migrations:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DJANGO_DEBUG: False
|
DJANGO_DEBUG: True
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
run: cd backend/project && python manage.py makemigrations --check --dry-run
|
run: cd backend/project && python manage.py makemigrations --check --dry-run
|
||||||
|
|
||||||
linting:
|
linting:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
needs: migrations
|
needs: migrations
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
needs: linting
|
needs: linting
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DJANGO_DEBUG: False
|
DJANGO_DEBUG: True
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
run: cd backend/project && python manage.py test
|
run: cd backend/project && python manage.py test
|
||||||
|
|
||||||
build_and_push:
|
build_and_push:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
needs: testing
|
needs: testing
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linting:
|
linting:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
build_and_push:
|
build_and_push:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
needs: linting
|
needs: linting
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user