Modify test command

This commit is contained in:
aya 2025-07-26 18:33:42 +03:00
parent 6feba5b0df
commit 04f5b7da41

View File

@ -39,18 +39,19 @@ jobs:
- name: Initialize CSV
run: echo "TestName,Iteration,Phase,HeapAlloc(KB),RSS(KB),Timestamp" > memory_metrics.csv
- name: Repeated test runs
run: |
set +e
for i in {1..80}; do
echo "Iteration $i: measuring memory BEFORE the tests..."
go run tools/memory_record.go --iteration $i --phase start
echo "Running tests (iteration $i)..."
go test -v -tags '!stress' ./...
echo "Iteration $i: measuring memory AFTER the tests..."
go run tools/memory_record.go --iteration $i --phase end
done
set -e
- name: Repeated test runs
run: |
set +e
for i in {1..20}; do
echo "Iteration $i: measuring memory BEFORE the tests..."
go run tools/memory_record.go --iteration $i --phase start
echo "Running tests (iteration $i)..."
go test -v -tags=stress ./...
echo "Iteration $i: measuring memory AFTER the tests..."
go run tools/memory_record.go --iteration $i --phase end
done
set -e
- name: Upload memory_metrics.csv
uses: actions/upload-artifact@v4