Less frequenty dependabot updates (#371) #395
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: Acquia Logstream Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, macos-latest] | |
php-versions: ['7.4', '8.0', '8.1'] | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, short_open_tag=On | |
- name: Setup PHP with pecl extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: pecl | |
extensions: pcov | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --no-progress --no-interaction | |
- name: Run test suite | |
run: composer run-script test | |
- name: Install Phar tools and build deployment artefact. | |
run: | | |
composer phar:install-tools | |
rm -rf vendor/* | |
composer install --prefer-dist --no-dev --no-interaction | |
composer phar:build | |
- name: Run the phar | |
run: php logstream.phar | |
- name: Upload artefact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-php-${{ matrix.php-versions }}-logstream.phar | |
path: logstream.phar | |
if-no-files-found: error | |
- name: Upload code coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-php-${{ matrix.php-versions }}-phpunit.html | |
path: ./tests/logs/phpunit.html | |
if-no-files-found: error |