Fix incorrect relative path checks to avoid bypassing path validation #3398
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: test-linux | |
on: [push, pull_request] | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['7.2', '7.3', '7.4', '8.0', '8.1'] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
- 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 pecl-install.sh | |
run: | | |
sudo ${{runner.workspace}}/swoole-src/travis/pecl-install.sh | |
- name: Run Swoole test | |
run: | | |
export TRAVIS_BRANCH=${GITHUB_REF##*/} | |
${{runner.workspace}}/swoole-src/travis/route.sh |