Skip to content

Commit e731ef1

Browse files
committed
fix: CI - remove load tests cause is too heavy
Signed-off-by: ananeridev <ananeri32@hotmail.com>
1 parent 3c06ead commit e731ef1

File tree

1 file changed

+1
-72
lines changed

1 file changed

+1
-72
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -171,75 +171,4 @@ jobs:
171171
kill %1 || true
172172
env:
173173
NODE_ENV: production
174-
DB_URL: postgres://dummy:dummy@localhost:5432/dummy
175-
176-
load-test:
177-
name: Load Testing
178-
runs-on: ubuntu-latest
179-
needs: [test]
180-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
181-
182-
services:
183-
postgres:
184-
image: postgres:15
185-
env:
186-
POSTGRES_PASSWORD: test_password
187-
POSTGRES_USER: test_user
188-
POSTGRES_DB: payment_processor_test
189-
options: >-
190-
--health-cmd pg_isready
191-
--health-interval 10s
192-
--health-timeout 5s
193-
--health-retries 5
194-
ports:
195-
- 5432:5432
196-
197-
steps:
198-
- name: Checkout code
199-
uses: actions/checkout@v4
200-
201-
- name: Setup Node.js
202-
uses: actions/setup-node@v4
203-
with:
204-
node-version: '20.x'
205-
cache: 'npm'
206-
207-
- name: Install dependencies
208-
run: npm ci
209-
210-
- name: Initialize database
211-
run: |
212-
export PGPASSWORD=test_password
213-
psql -h localhost -U test_user -d payment_processor_test -f docker/postgres/init/01-init.sql
214-
env:
215-
PGPASSWORD: test_password
216-
217-
- name: Install k6
218-
run: |
219-
sudo gpg -k
220-
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
221-
echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list
222-
sudo apt-get update
223-
sudo apt-get install k6
224-
225-
- name: Start application
226-
run: |
227-
npm start &
228-
sleep 10
229-
env:
230-
NODE_ENV: test
231-
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
232-
233-
- name: Run load tests
234-
run: |
235-
npm run test:load
236-
npm run test:stress
237-
env:
238-
NODE_ENV: test
239-
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
240-
241-
- name: Run concurrency tests
242-
run: npm run test:concurrency
243-
env:
244-
NODE_ENV: test
245-
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
174+
DB_URL: postgres://dummy:dummy@localhost:5432/dummy

0 commit comments

Comments
 (0)