Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Dec 16, 2023
1 parent 734530d commit 28b49a2
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,71 +132,71 @@ jobs:
file: ./_meta/coverage.xml
fail_ci_if_error: true

PHPUnit-MariaDB:
PHPUnit-MariaDB:

strategy:
fail-fast: false
matrix:
php_versions: ['8.1', '8.2', '8.3']
strategy:
fail-fast: false
matrix:
php_versions: ['8.1', '8.2', '8.3']

runs-on: ubuntu-latest
name: PHPUnit - PHP ${{ matrix.php_versions }} - MariaDB
runs-on: ubuntu-latest
name: PHPUnit - PHP ${{ matrix.php_versions }} - MariaDB

env:
DB_TEST_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_USER: userfrosting
DB_PASSWORD: password
DB_NAME: userfrosting
env:
DB_TEST_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_USER: userfrosting
DB_PASSWORD: password
DB_NAME: userfrosting

steps:
- uses: actions/checkout@v2

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
extensions: mbstring, dom, fileinfo, gd, memcached, redis, pdo_sqlite
coverage: xdebug
tools: pecl, composer

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Redis-server
uses: supercharge/[email protected]
with:
redis-version: 6

- name: Setup Memcached
uses: niden/actions-memcached@v7

- name: Shutdown Ubuntu MySQL (SUDO)
run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it

- name: Set up MariaDB
uses: getong/[email protected]
with:
mysql database: 'userfrosting'
mysql user: 'userfrosting'
mysql password: 'password'

- name: Install Dependencies
run: composer install --prefer-dist --no-progress

- name: Execute tests
run: |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
vendor/bin/phpunit
steps:
- uses: actions/checkout@v2

- name: Upload coverage to Codecov
if: github.event_name != 'schedule'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./_meta/coverage.xml
fail_ci_if_error: true
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
extensions: mbstring, dom, fileinfo, gd, memcached, redis, pdo_sqlite
coverage: xdebug
tools: pecl, composer

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Redis-server
uses: supercharge/[email protected]
with:
redis-version: 6

- name: Setup Memcached
uses: niden/actions-memcached@v7

- name: Shutdown Ubuntu MySQL (SUDO)
run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it

- name: Set up MariaDB
uses: getong/[email protected]
with:
mysql database: 'userfrosting'
mysql user: 'userfrosting'
mysql password: 'password'

- name: Install Dependencies
run: composer install --prefer-dist --no-progress

- name: Execute tests
run: |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
vendor/bin/phpunit
- name: Upload coverage to Codecov
if: github.event_name != 'schedule'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./_meta/coverage.xml
fail_ci_if_error: true

PHPUnit-SQLite:

Expand Down

0 comments on commit 28b49a2

Please sign in to comment.