Skip to content

Commit aabfe19

Browse files
committed
fix: move environment variables to the test job in CI pipeline
1 parent 861c9e9 commit aabfe19

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ jobs:
5555
test:
5656
runs-on: ubuntu-latest
5757
needs: build
58+
env:
59+
DB_HOST: localhost
60+
DB_PORT: 5432
61+
DB_USERNAME: postgres
62+
DB_PASSWORD: postgres
63+
DB_DATABASE: payment_records
64+
PORT: 3000
65+
FRONTEND_URL: http://localhost:5173
66+
SMTP_HOST: smtp.example.com
67+
EMAIL_USER: email@gmail.com
68+
EMAIL_PASS: your-email-password
69+
ACCESS_SECRET: secret1
70+
ACCESS_EXPIRE: 15m
71+
REFRESH_SECRET: secret2
72+
REFRESH_EXPIRE: 7d
73+
RESET_SECRET: secret3
74+
RESET_EXPIRE: 15m
75+
5876
steps:
5977
- name: Checkout repository
6078
uses: actions/checkout@v5
@@ -75,23 +93,6 @@ jobs:
7593

7694
- name: Up docker services
7795
run: docker compose up -d --build
78-
env:
79-
DB_HOST: localhost
80-
DB_PORT: 5432
81-
DB_USERNAME: postgres
82-
DB_PASSWORD: postgres
83-
DB_DATABASE: payment_records
84-
PORT: 3000
85-
FRONTEND_URL: http://localhost:5173
86-
SMTP_HOST: smtp.example.com
87-
EMAIL_USER: email@gmail.com
88-
EMAIL_PASS: your-email-password
89-
ACCESS_SECRET: secret1
90-
ACCESS_EXPIRE: 15m
91-
REFRESH_SECRET: secret2
92-
REFRESH_EXPIRE: 7d
93-
RESET_SECRET: secret3
94-
RESET_EXPIRE: 15m
9596

9697
- name: Wait for Database
9798
run: |

0 commit comments

Comments
 (0)