Skip to content

Commit

Permalink
Update: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Feb 17, 2024
1 parent d9a8bea commit f2b6ed9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,20 @@ jobs:
uses: ./.github/actions/ci-prepare
with:
env: ${{ env.ENV_SERVICE }}
- name: Test Env
if: ${{ env.test_prepared && always() }}
run: |
docker ps
docker exec ${ENV_SERVICE} base -c "echo 'info' | nc redis 6379 -w 1"
docker exec ${ENV_SERVICE} base -c "echo 'info' | nc redis-cluster-node-0 6379 -w 1"
docker exec ${ENV_SERVICE} base -c "echo 'info' | nc redis-cluster-node-1 6379 -w 1"
docker exec ${ENV_SERVICE} base -c "echo 'info' | nc redis-cluster-node-2 6379 -w 1"
- name: Test
if: ${{ env.test_prepared && always() }}
run: docker exec ${ENV_SERVICE} composer test
- name: Test redis
if: ${{ env.test_prepared && always() }}
run: |
docker ps
echo "info" | nc redis 6379 -w 1
echo "info" | nc redis-cluster-node-0 6379 -w 1
echo "info" | nc redis-cluster-node-1 6379 -w 1
echo "info" | nc redis-cluster-node-2 6379 -w 1
echo "======"
docker exec ${ENV_SERVICE} composer test-redis
# - name: Test swoole
# if: ${{ env.test_prepared && always() }}
Expand Down Expand Up @@ -126,11 +128,11 @@ jobs:
- name: Print logs
if: failure()
run: docker exec ${ENV_SERVICE} php .github/print-logs.php
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: ${{ failure() }}
with:
wait-timeout-minutes: 5
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# if: ${{ failure() }}
# with:
# wait-timeout-minutes: 5

# ci-unix:
# name: Linux Swoole-${{ matrix.swoole.version }} RoadRunner-${{ matrix.roadrunner }} With Redis UnixSocket
Expand Down

0 comments on commit f2b6ed9

Please sign in to comment.