Skip to content

Commit ca919a1

Browse files
committed
fix: the database name must be "test"
1 parent aecd094 commit ca919a1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
matrix:
1313
postgres-version:
1414
# - { tag: "14", sha: "sha256:bbcaba1d74865ee6d6318b5e297d0df73d1f6b6d995cd892b60a2cf1440b716a" }
15-
- { tag: "15", sha: "sha256:f91f2248e87bff8bc5b1040088148b53a3727cbe60e134589bf993e1aede847f" }
16-
- { tag: "16", sha: "sha256:4a545143208455e426d0f024dc57df39629470eeef1afa1fc4764b9d4147e277" }
15+
- { tag: "15", sha: "sha256:f57a3bdbf044f0b213fdc99f35a0d21c401608bf41f063176ec00c51df9655f7" }
16+
- { tag: "16", sha: "sha256:47053cd4ee3f096afc744e53e3280de7b29b3670d2f2196c2acc0c6470923c99" }
1717
services:
1818
postgres:
1919
image: postgres:${{ matrix.postgres-version.tag }}@${{ matrix.postgres-version.sha }}
2020
ports:
2121
- 5432:5432
2222
env:
2323
POSTGRES_PASSWORD: password
24-
POSTGRES_DB: mission-control
24+
POSTGRES_DB: test
2525
# Set health checks to wait until postgres has started
2626
options: >-
2727
--health-cmd pg_isready
@@ -47,7 +47,7 @@ jobs:
4747
- name: Test
4848
run: make test
4949
env:
50-
DUTY_DB_URL: postgres://postgres:password@localhost:5432/mission-control?sslmode=disable
50+
DUTY_DB_URL: postgres://postgres:password@localhost:5432/test?sslmode=disable
5151
DUTY_DB_CREATE: "false"
5252
DUTY_DB_DISABLE_RLS: ${{ matrix.postgres-version.tag == '14' && 'true' || 'false' }}
5353

@@ -60,7 +60,7 @@ jobs:
6060
- { tag: "15", sha: "sha256:f57a3bdbf044f0b213fdc99f35a0d21c401608bf41f063176ec00c51df9655f7" }
6161
- { tag: "16", sha: "sha256:47053cd4ee3f096afc744e53e3280de7b29b3670d2f2196c2acc0c6470923c99" }
6262
env:
63-
migrate_command: make -B tidy hack/migrate/go.mod && cd hack/migrate && go run main.go --db-url 'postgres://postgres:postgres@localhost:5432/mission-control?sslmode=disable'
63+
migrate_command: make -B tidy hack/migrate/go.mod && cd hack/migrate && go run main.go --db-url 'postgres://postgres:postgres@localhost:5432/test?sslmode=disable'
6464
steps:
6565
- name: Install Go
6666
uses: buildjet/setup-go@v5
@@ -83,7 +83,7 @@ jobs:
8383
- 5432:5432
8484
env:
8585
POSTGRES_PASSWORD: postgres
86-
POSTGRES_DB: mission-control
86+
POSTGRES_DB: test
8787
# Set health checks to wait until postgres has started
8888
options: >-
8989
--health-cmd pg_isready

0 commit comments

Comments
 (0)