-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REFACTOR migrate to new workflow, README cleanup (#41)
* disable JS tests
- Loading branch information
Showing
4 changed files
with
29 additions
and
100 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 |
---|---|---|
@@ -1,75 +1,14 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
name: "CI" | ||
workflow_dispatch: | ||
|
||
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.4" | ||
- "8.0" | ||
- "8.1" | ||
|
||
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/" | ||
ci: | ||
name: CI | ||
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 | ||
with: | ||
phpcoverage: true | ||
js: false |
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ A block that displays content in collapsable panels. | |
|
||
## License | ||
|
||
See [License](license.md) | ||
See [License](LICENSE.md) | ||
|
||
## Upgrading from version 2 | ||
|
||
|
@@ -39,7 +39,6 @@ vendor/bin/sake dev/tasks/LinkableMigrationTask | |
|
||
This will populate all of the new Link fields with data from the old class. | ||
|
||
|
||
## Usage | ||
|
||
A block that allows you to create collapsible content blocks. | ||
|
@@ -48,7 +47,6 @@ A block that allows you to create collapsible content blocks. | |
|
||
The default templates are based off the [jQuery UI Accordion](https://jqueryui.com/accordion/) classes/styling | ||
|
||
|
||
## Screen Shots | ||
|
||
#### Front End sample of an Accordion | ||
|
@@ -70,7 +68,7 @@ See [Elemental modules by Dynamic](https://github.com/orgs/dynamic/repositories? | |
|
||
## Configuration | ||
|
||
See [SilverStripe Elemental Configuration](https://github.com/dnadesign/silverstripe-elemental#configuration) | ||
See [SilverStripe Elemental Configuration](https://github.com/silverstripe/silverstripe-elemental#configuration) | ||
|
||
## Translations | ||
|
||
|
@@ -80,7 +78,7 @@ translating! | |
|
||
## Maintainers | ||
|
||
* [Dynamic](http://www.dynamicagency.com) (<[email protected]>) | ||
* [Dynamic](https://www.dynamicagency.com) (<[email protected]>) | ||
|
||
## Bugtracker | ||
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over | ||
|
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 |
---|---|---|
@@ -1,24 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="SS4"> | ||
<description>Coding standard for SilverStripe 4.x</description> | ||
|
||
<!-- Don't sniff third party libraries --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/thirdparty/*</exclude-pattern> | ||
|
||
<!-- Show progress and output sniff names on violation, and add colours --> | ||
<arg value="sp"/> | ||
<arg name="colors"/> | ||
|
||
<!-- Use PSR-2 as a base standard --> | ||
<rule ref="PSR2"> | ||
<!-- Allow classes to not declare a namespace --> | ||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> | ||
|
||
<!-- Allow underscores in class names --> | ||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/> | ||
|
||
<!-- Allow non camel cased method names --> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="SilverStripe"> | ||
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description> | ||
|
||
<file>src</file> | ||
<file>tests</file> | ||
|
||
<!-- base rules are PSR-2 --> | ||
<rule ref="PSR2" > | ||
<!-- Current exclusions --> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName" /> | ||
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" /> | ||
</rule> | ||
</ruleset> |
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