Skip to content

Commit

Permalink
test github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: maxwellgithinji <maxwellgithinji@gmail.com>
  • Loading branch information
maxwellgithinji committed Jan 18, 2022
1 parent 4d65f8a commit 069a86e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ jobs:
env:
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}

- name: Purge postgres
run: |
sudo apt-get --purge remove postgresql postgresql-*
- name: Upgrade packages
run: |
sudo apt-get update && sudo apt-get upgrade
- name: Install Postgresql/PostGIS 12
run: |
sudo apt-get install postgresql-12 postgresql-12-postgis-3
- name: Install requirements
run: |
sudo apt-get update
Expand All @@ -104,9 +116,13 @@ jobs:
npm ci
npm install -g mjml
- name: Setup and start postgres service
run: |
sudo pg_ctlcluster 12 main start
sudo -u ${POSTGRES_USER} psql -p ${POSTGRES_PORT} -c "ALTER USER ${POSTGRES_USER} WITH PASSWORD '${POSTGRES_PASSWORD}';"
- name: Set up Django
run: |
sudo apt-get update && sudo apt-get upgrade
python manage.py migrate
python manage.py createcachetable
python manage.py collectstatic --noinput
Expand All @@ -121,3 +137,5 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

# close this PR. it just triggers the github workflows

0 comments on commit 069a86e

Please sign in to comment.