Skip to content

Commit

Permalink
add database to api-tests-e2e workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed May 23, 2024
1 parent ba43817 commit fef4388
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
name: API E2E Tests
runs-on: ubuntu-22.04

services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: 4growth
POSTGRES_PASSWORD: 4growth
POSTGRES_DB: 4growth

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion shared/dto/users/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class User {
@PrimaryGeneratedColumn()
id: number;
@ManyToOne(() => Country, (country) => country.users)
country: Country[];
country: Country;

@Column()
username: string;
Expand Down

0 comments on commit fef4388

Please sign in to comment.