Bump phpunit/phpunit from 9.6.13 to 9.6.17 in /src #1369
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: PHP Composer | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ["8.0", "8.1"] | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Check PHP Version | |
run: php -v | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
working-directory: ./src | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: ./src/bb-vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress --no-suggest | |
working-directory: ./src | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
- name: Run test suite for composer updates. | |
run: composer install --prefer-dist --no-progress --no-suggest | |
working-directory: ./src | |
- name: Configure environment for Tests | |
run: | | |
cp ./src/bb-config-sample.php ./src/bb-config.php | |
mkdir -p ./src/bb-data/cache | |
mkdir -p ./src/bb-data/log | |
echo > ./src/bb-data/log/license.log | |
echo > ./src/bb-data/log/application.log | |
echo > ./src/bb-data/log/php_error.log | |
rm -rf ./src/install | |
- name: Run test suite for bb-modules | |
run: | | |
php ./src/bb-vendor/bin/phpunit ./tests/bb-modules/ | |
- name: Run test suite for bb-library | |
run: | | |
php ./src/bb-vendor/bin/phpunit ./tests/bb-library/ |