Bump upload-artifact to v4 (#69) #87
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_call: ~ | |
permissions: | |
contents: read | |
jobs: | |
sanity-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: elastic/apm-pipeline-library/.github/actions/pre-commit@current | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
php-image: | |
- 8.1-alpine | |
- 8.2-alpine | |
runs-on: ubuntu-latest | |
container: php:${{ matrix.php-image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Append PATH | |
run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH | |
- name: Install composer | |
run: .ci/scripts/install-composer.sh | |
- name: Install dependencies | |
run: composer --no-progress install | |
- name: Run tests | |
env: | |
VERSION: ${{ matrix.php-image }} | |
run: composer test | |
- if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-${{ matrix.php-image }} | |
path: junit-*.xml |