Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
156 additions
and
121 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 |
---|---|---|
|
@@ -11,3 +11,6 @@ indent_size = 4 | |
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_style = space |
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,7 +1,9 @@ | ||
.coveralls.yml export-ignore | ||
* text=auto | ||
|
||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.github export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
Makefile export-ignore | ||
phpunit.xml export-ignore | ||
tests/ export-ignore |
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,49 @@ | ||
name: test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
phpunit: | ||
name: phpunit | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.1" | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: xdebug | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
tools: composer:v2 | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.composer/cache | ||
vendor | ||
key: "php-${{ matrix.php-version }}" | ||
restore-keys: "php-${{ matrix.php-version }}" | ||
|
||
- name: Install dependencies | ||
run: composer install --no-interaction --no-progress | ||
|
||
- name: Run PHPUnit | ||
run: make test-coveralls | ||
|
||
- name: Upload code coverage | ||
if: ${{ matrix.php-version == '7.1' }} | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer global require php-coveralls/php-coveralls | ||
php-coveralls --coverage_clover=build/logs/clover.xml -v |
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,3 +1,4 @@ | ||
.phpunit.result.cache | ||
build | ||
composer.lock | ||
vendor |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
FROM php:7.1-alpine | ||
FROM php:7.1-cli-buster | ||
|
||
RUN apk add --update --no-cache make $PHPIZE_DEPS && \ | ||
pecl install xdebug-2.6.1 && \ | ||
docker-php-ext-enable xdebug | ||
RUN docker-php-ext-enable opcache | ||
|
||
RUN echo $'\ | ||
xdebug.remote_autostart=1\n\ | ||
xdebug.remote_enable=1\n\ | ||
xdebug.remote_host=host.docker.internal\n\ | ||
RUN echo '\ | ||
xdebug.client_host=host.docker.internal\n\ | ||
xdebug.mode=develop\n\ | ||
xdebug.start_with_request=yes\n\ | ||
' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
|
||
RUN echo $'\ | ||
RUN echo '\ | ||
date.timezone=UTC\n\ | ||
' >> /usr/local/etc/php/conf.d/php.ini | ||
|
||
ENV PHP_IDE_CONFIG serverName=icanboogie-tests | ||
ENV PHP_IDE_CONFIG serverName=icanboogie-session-tests | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer && \ | ||
curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig && \ | ||
php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }" && \ | ||
php /tmp/composer-setup.php && \ | ||
RUN apt-get update && \ | ||
apt-get install unzip && \ | ||
curl -s https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && \ | ||
mv composer.phar /usr/local/bin/composer |
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
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
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,8 +1,9 @@ | ||
--- | ||
version: "2.1" | ||
version: "3.2" | ||
services: | ||
app: | ||
build: . | ||
volumes: | ||
- .:/app:delegated | ||
- ~/.composer:/root/.composer | ||
working_dir: /app |
Oops, something went wrong.