build(deps): bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #1673
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: | |
# Allow to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.1', '8.2', '8.3'] | |
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`" | |
env: | |
PHP_VERSION: "${{ matrix.php }}" | |
# - name: Run pecl-install.sh | |
# run: | | |
# sudo ${{runner.workspace}}/ext-openswoole/travis/pecl-install.sh | |
# - name: Run simple-compile-on-github.sh | |
# run: | | |
# sudo ${{runner.workspace}}/ext-openswoole/travis/simple-compile-on-github.sh | |
- name: Run Openswoole test | |
run: | | |
export CI_BRANCH=${GITHUB_REF##*/} | |
${{runner.workspace}}/ext-openswoole/ci/route.sh | |
env: | |
PHP_VERSION: "${{ matrix.php }}" | |
- name: Upload Unit Test Results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: PHP ${{ matrix.php }} | |
path: tests/test-results.xml | |
publish-test-results: | |
name: "Publish PHP Unit Tests Results" | |
needs: test-linux | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- name: Download Artifacts | |
uses: actions/[email protected] | |
with: | |
path: artifacts | |
- name: Publish PHP Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
with: | |
check_name: PHP Test Results | |
files: artifacts/**/*.xml |