-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX empty category name in csv creates empty category objects (#232)
* BUGFIX empty category name in csv creates empty category objects * BUGFIX empty category name in csv creates empty category objects * UPDATE workflows ci config * UPDATE remove various “extra” declarations from composer * UPDATE allowed-plugins
- Loading branch information
Showing
3 changed files
with
97 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
name: "CI" | ||
|
||
jobs: | ||
tests: | ||
name: "Tests" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
env: | ||
php_extensions: ctype, dom, fileinfo, hash, intl, mbstring, session, simplexml, tokenizer, xml, pdo, mysqli, gd, zip | ||
|
||
services: | ||
mysql: | ||
image: "mysql:5.7" | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: true | ||
MYSQL_ROOT_PASSWORD: | ||
MYSQL_DATABASE: test_db | ||
ports: | ||
- 3306/tcp | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.3" | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: "${{ env.php_extensions }}" | ||
coverage: "xdebug" | ||
|
||
- name: "Start mysql service" | ||
run: "sudo /etc/init.d/mysql start" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}" | ||
restore-keys: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer install --no-ansi --no-interaction --no-progress" | ||
|
||
- name: "Run tests with phpunit/phpunit" | ||
env: | ||
SS_DATABASE_PORT: ${{ job.services.mysql.ports['3306'] }} | ||
run: "vendor/bin/phpunit --coverage-clover=coverage.xml" | ||
|
||
- name: "Upload coverage results to CodeCov" | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ./coverage.xml # optional | ||
flags: unittests # optional | ||
|
||
- name: "Run tests with squizlabs/php_codesniffer" | ||
run: "vendor/bin/phpcs -s --report=summary --standard=phpcs.xml.dist --extensions=php,inc --ignore=autoload.php --ignore=vendor/ src/ tests/" |
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
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