Skip to content

Commit

Permalink
EMA-150 auto test memory optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanyi committed Jul 29, 2024
1 parent 6e1c63f commit da6bcec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ jobs:
shell: bash
run: |
cd magento2-extension
docker run --rm -e NPM_TOKEN=${{ secrets.GITLAB_TOKEN }} -e VERSION=${{ matrix.magento-versions }} mage_node:latest bash dev/testv2/tools/scripts/run-unit.sh
ls -la dev/testv2/tools/scripts/
docker run --rm -e NPM_TOKEN=${{ secrets.GITLAB_TOKEN }} -e VERSION=${{ matrix.magento-versions }} -v $(pwd)/dev/testv2/tools/scripts:/scripts mage_node:latest bash /scripts/run-unit.sh
env:
VERSION: ${{ matrix.magento-versions }}
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
Expand Down Expand Up @@ -142,7 +143,7 @@ jobs:
shell: bash
run: |
cd magento2-extension
docker run --rm -e NPM_TOKEN=${{ secrets.GITLAB_TOKEN }} -e VERSION=${{ matrix.magento-versions }} mage_node:latest bash dev/testv2/tools/scripts/run-e2e.sh
docker run --rm -e NPM_TOKEN=${{ secrets.GITLAB_TOKEN }} -e VERSION=${{ matrix.magento-versions }} -v $(pwd)/dev/testv2/tools/scripts:/scripts mage_node:latest bash /scripts/run-e2e.sh
env:
VERSION: ${{ matrix.magento-versions }}
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
1 change: 0 additions & 1 deletion dev/testv2/tools/scripts/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ echo "\n\n|--- All tests passed"
free

docker compose -p mage_e2e_"$project_version" -f $composefile down
sleep 30
exit $exitcode
1 change: 0 additions & 1 deletion dev/testv2/tools/scripts/run-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ docker compose -p mage_unit_$project_version -f $composefile run --rm node sh -c
exitcode=$?
echo "\n\n|--- Stopping containers"
docker compose -p mage_unit_$project_version -f $composefile down
sleep 30
exit $exitcode

0 comments on commit da6bcec

Please sign in to comment.