Skip to content

Commit 84e2090

Browse files
committed
Do this!
1 parent c78fb5a commit 84e2090

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/database.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Database
2+
# These workflows are intended to check that various actions related to the database
3+
# (such as building, exporting, and importing) work as expected.
24

35
on:
46
pull_request:
@@ -78,15 +80,15 @@ jobs:
7880
- name: Run migrations
7981
run: uv run manage.py migrate --settings=config.local
8082
- name: Build database
81-
run: uv run manage.py shell --settings=config.local -c "from data.v2.build import build_all; build_all()"
83+
run: uv run manage.py shell --settings=config.local -c "from data.v2.build import build_all; build_all(); exit()"
8284
- name: Dump DB
8385
run: pg_dump -h localhost -U pokeapi -Fc -N 'hdb_*' pokeapi > pokeapi.dump
8486
env:
8587
PGPASSWORD: pokeapi
8688
- name: Drop and recreate database
8789
run: |
88-
psql -h localhost -U pokeapi -c "DROP DATABASE pokeapi;"
89-
psql -h localhost -U pokeapi -c "CREATE DATABASE pokeapi;"
90+
psql -h localhost -U pokeapi -d postgres -c "DROP DATABASE pokeapi;"
91+
psql -h localhost -U pokeapi -d postgres -c "CREATE DATABASE pokeapi;"
9092
env:
9193
PGPASSWORD: pokeapi
9294
- name: Import database

.github/workflows/docker-k8s.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Container
2+
# These workflows are intended to check that the Docker and Kubernetes
3+
# configurations work as expected in a local development environment.
24

35
on:
46
pull_request:

0 commit comments

Comments
 (0)