Skip to content

Commit 656188e

Browse files
committed
Fix pr check failures
1 parent fd89a9f commit 656188e

2 files changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/agent-manager-service-pr-checks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
DB_PASSWORD=agentmanager
6565
DB_NAME=agentmanager
6666
SERVER_PORT=8080
67+
API_KEY_VALUE=test-api-key
6768
EOF
6869
6970
- name: Wait for PostgreSQL
@@ -74,6 +75,10 @@ jobs:
7475
done
7576
timeout-minutes: 2
7677

78+
- name: Run database migrations
79+
working-directory: ./agent-manager-service
80+
run: ENV_FILE_PATH=.env go run main.go --migrate --server=false
81+
7782
- name: Run tests
7883
working-directory: ./agent-manager-service
7984
run: make test

agent-manager-service/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ agent-manager-service/
4646
- **PostgreSQL**: Version 12 or later
4747
- **Make**: For build automation
4848
- **air** go install github.com/air-verse/air@latest
49-
- **moq** go install github.com/matryer/moq@v0.3.4
49+
- **moq** go install github.com/matryer/moq@v0.5.3
5050

5151
## Local Development
5252

@@ -66,21 +66,20 @@ go mod download
6666
### 3. Set Up Database
6767

6868
### 4. Configurations
69-
<!-- Update this section when adding new configs-->
70-
The service uses environment variables for configuration. Create a `.env` file in the project root:
71-
7269

73-
| **Key** | **Description** |
74-
|----------------|-----------------------------------------|
75-
| `SERVER_HOST` | Host address where the server runs |
76-
| `SERVER_PORT` | Port number for the server |
77-
| `DB_HOST` | Database host address |
78-
| `DB_PORT` | Database port number |
79-
| `DB_USER` | Username for database authentication |
80-
| `DB_PASSWORD` | Password for database authentication |
81-
| `DB_NAME` | Name of the database |
70+
<!-- Update this section when adding new configs-->
8271

72+
The service uses environment variables for configuration. Create a `.env` file in the project root:
8373

74+
| **Key** | **Description** |
75+
| ------------- | ------------------------------------ |
76+
| `SERVER_HOST` | Host address where the server runs |
77+
| `SERVER_PORT` | Port number for the server |
78+
| `DB_HOST` | Database host address |
79+
| `DB_PORT` | Database port number |
80+
| `DB_USER` | Username for database authentication |
81+
| `DB_PASSWORD` | Password for database authentication |
82+
| `DB_NAME` | Name of the database |
8483

8584
### 5. Run Database Migrations
8685

@@ -99,6 +98,7 @@ make run
9998
```
10099

101100
or run Air directly:
101+
102102
```bash
103103
cd agent-management-platform/agent-manager-service
104104
air
@@ -107,6 +107,7 @@ air
107107
The service will start on `http://localhost:8910` by default with hot-reloading enabled.
108108

109109
### 7. Run tests
110+
110111
```bash
111112
cd agent-management-platform/agent-manager-service
112113
make test
@@ -123,12 +124,11 @@ make test
123124
- **Model generation from the API specification** - `make spec`
124125

125126
## Scripts
127+
126128
Run make help to see all available commands.
127129

128130
## API Documentation
129131

130132
### OpenAPI Specification
131133

132134
The API is documented using OpenAPI 3.0 specification in `docs/api_v1_openapi.yaml`.
133-
134-

0 commit comments

Comments
 (0)