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
1 parent
ec6460c
commit 85d94fa
Showing
7 changed files
with
127 additions
and
90 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,3 +1,2 @@ | ||
service_name: travis-ci | ||
coverage_clover: coverage.xml # file generated by phpunit | ||
json_path: coverage.json # file generated by php-coveralls |
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ Thumbs.db | |
|
||
# Directories | ||
.git | ||
.github | ||
.idea | ||
.make | ||
assets | ||
|
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,60 @@ | ||
name: Cyr2Lat CI | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ] | ||
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies and update PHPUnit | ||
run: | | ||
composer install | ||
make update-phpunit | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run code sniffer | ||
run: vendor/bin/phpcs --colors | ||
|
||
- name: Run PHPUnit tests | ||
if: ${{ matrix.php-version != '7.4' }} | ||
run: vendor/bin/phpunit --configuration tests/phpunit/phpunit.xml | ||
|
||
- name: Run PHPUnit tests with coverage | ||
if: ${{ matrix.php-version == '7.4' }} | ||
run: vendor/bin/phpunit --configuration tests/phpunit/phpunit.xml --coverage-clover coverage.xml | ||
|
||
- name: Run Coveralls for PHPUnit tests | ||
if: ${{ matrix.php-version == '7.4' }} | ||
env: | ||
COVERALLS_RUN_LOCALLY: true | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: vendor/bin/php-coveralls -v | ||
|
||
- name: Run JEST with coverage and Coveralls | ||
if: ${{ matrix.php-version == '7.4' }} | ||
env: | ||
COVERALLS_RUN_LOCALLY: true | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: | | ||
cd src | ||
yarn | ||
yarn run build:dev | ||
yarn run coveralls | ||
cd .. |
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,16 +1,18 @@ | ||
.DS_Store | ||
Thumbs.db | ||
wp-cli.local.yml | ||
build/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
dist/** | ||
build/** | ||
tests/**/*.cache | ||
vendor/ | ||
!composer.lock | ||
*.lock | ||
*.opt | ||
*.sql | ||
*.tar.gz | ||
*.zip | ||
*.lock | ||
*.opt | ||
.DS_Store | ||
.idea/ | ||
!composer.lock | ||
.phpcs.cache | ||
Thumbs.db | ||
coverage.* | ||
wp-cli.local.yml |
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 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