[test] fix ci 2 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Thread Support Tests | |
on: [push, pull_request] | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.1-zts', '8.2-zts', '8.3-zts'] | |
name: ${{ matrix.php-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
coverage: none | |
env: | |
phpts: ts | |
- name: Show machine information | |
run: | | |
date | |
env | |
uname -a | |
ulimit -a | |
php -v | |
php --ini | |
ls -al | |
pwd | |
echo "`git log -20 --pretty --oneline`" | |
echo "`git log -10 --stat --pretty --oneline`" | |
- name: Run Swoole test | |
run: | | |
export SWOOLE_BRANCH=${GITHUB_REF##*/} | |
export PHP_VERSION=${{ matrix.php-version }} | |
export SWOOLE_THREAD=1 | |
${{runner.workspace}}/swoole-src/scripts/route.sh |