Skip to content

Commit

Permalink
Check whether environment variables are being defined in Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 29, 2024
1 parent 9430af6 commit 516e63b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function authorize(request: Test): Test {
}

export async function createMySQLConnection(): Promise<Connection> {
console.log(`username is undefined: ${process.env.DB_USERNAME === undefined}`);
console.log(`hostname is undefined: ${process.env.DB_HOSTNAME === undefined}`);
console.log(`password is undefined: ${process.env.DB_PASSWORD === undefined}`);
return createConnection({
host: process.env.DB_HOSTNAME as string,
user: process.env.DB_USERNAME as string,
Expand Down

0 comments on commit 516e63b

Please sign in to comment.