mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
No need for these custom github actions now
This commit is contained in:
parent
e45cf11d94
commit
4440d2b3b9
2 changed files with 0 additions and 66 deletions
28
.github/actions/run-server/action.yml
vendored
28
.github/actions/run-server/action.yml
vendored
|
@ -1,28 +0,0 @@
|
||||||
name: "Run Django server"
|
|
||||||
description: "Run django server in the background for scans to access"
|
|
||||||
inputs:
|
|
||||||
django_settings_module:
|
|
||||||
description: DJANGO_SETTINGS_MODULE to use. Defaults to registrar.config.settings
|
|
||||||
required: false
|
|
||||||
default: registrar.config.settings
|
|
||||||
database_url:
|
|
||||||
description: DATABASE_URL to set
|
|
||||||
required: true
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- name: "Start server in background"
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
DJANGO_SETTINGS_MODULE: ${{ inputs.django_settings_module }}
|
|
||||||
DATABASE_URL: ${{ inputs.database_url }}
|
|
||||||
run: pipenv run python manage.py runserver 0.0.0.0:8080 &
|
|
||||||
working-directory: ./src
|
|
||||||
|
|
||||||
- name: "Wait for startup"
|
|
||||||
shell: bash
|
|
||||||
run: sleep 5
|
|
||||||
|
|
||||||
- name: "Verify response working"
|
|
||||||
shell: bash
|
|
||||||
run: curl http://localhost:8080/health -I
|
|
38
.github/actions/setup-project/action.yaml
vendored
38
.github/actions/setup-project/action.yaml
vendored
|
@ -1,38 +0,0 @@
|
||||||
name: Set up languages and dependencies
|
|
||||||
description: Setup python and dependencies and establish database schema
|
|
||||||
nputs:
|
|
||||||
django_settings_module:
|
|
||||||
description: DJANGO_SETTINGS_MODULE to use. Defaults to registrar.config.settings
|
|
||||||
required: false
|
|
||||||
default: Cregistrar.config.settings
|
|
||||||
database_url:
|
|
||||||
description: DATABASE_URL to set
|
|
||||||
required: false
|
|
||||||
default: postgres://user:feedabee@localhost:5432/app
|
|
||||||
outputs:
|
|
||||||
database_url:
|
|
||||||
value: ${{ inputs.database_url }}
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Install Python 3.10
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: '3.10' # matches the version from runtime.txt
|
|
||||||
|
|
||||||
- name: Install Django and dependencies
|
|
||||||
working-directory: ./src
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install pipenv
|
|
||||||
pipenv install --system --dev
|
|
||||||
|
|
||||||
- name: Set up database schema
|
|
||||||
env:
|
|
||||||
DJANGO_SETTINGS_MODULE: ${{ inputs.django_settings_module }}
|
|
||||||
DATABASE_URL: ${{ inputs.database_url }}
|
|
||||||
working-directory: ./src
|
|
||||||
shell: bash
|
|
||||||
run: pipenv run python manage.py migrate
|
|
Loading…
Add table
Add a link
Reference in a new issue