Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
1f2c77f
Implementing Codecov 1
shishir-intelli Sep 13, 2022
befbe04
Merge branch 'apigee:3.x' into action_codecov
shishir-intelli Sep 13, 2022
b1019e9
codecov 2
shishir-intelli Sep 13, 2022
8f4f94e
action codecov 3
shishir-intelli Sep 13, 2022
9e30eb9
action codecov 4
shishir-intelli Sep 13, 2022
9dc63f3
action codecov 5
shishir-intelli Sep 13, 2022
bfea6ec
action code cov 6
shishir-intelli Sep 13, 2022
a2ab7d9
action codecov 7
shishir-intelli Sep 13, 2022
ab73b26
action codecov 8
shishir-intelli Sep 13, 2022
400616d
action codecov 9
shishir-intelli Sep 13, 2022
3fcf68e
action codecov 10
shishir-intelli Sep 13, 2022
76b2c61
action codecov 11
shishir-intelli Sep 13, 2022
6aff64d
action codecov 12
shishir-intelli Sep 13, 2022
c2a64f8
action codecov 13
shishir-intelli Sep 13, 2022
28c5311
action codecov 14
shishir-intelli Sep 13, 2022
136c9b1
CodeCov 1
shishir-intelli Sep 20, 2022
9dbab18
codecov 2
shishir-intelli Sep 20, 2022
039d273
codecov 3
shishir-intelli Sep 20, 2022
5c6a03f
codecov 4
shishir-intelli Sep 20, 2022
66a0ab8
code cov 5
shishir-intelli Sep 20, 2022
84973a6
codecov 6
shishir-intelli Sep 20, 2022
6575662
Codecov 7
shishir-intelli Sep 20, 2022
77ac86e
codecov 8
shishir-intelli Sep 20, 2022
9813512
codecov 9
shishir-intelli Sep 20, 2022
7908ab3
codecov 10
shishir-intelli Sep 20, 2022
c83bf75
codecov 11
shishir-intelli Sep 20, 2022
460b7da
Codeocv 12
shishir-intelli Sep 20, 2022
da3d310
codecov 13
shishir-intelli Sep 20, 2022
89cc400
Create .codecov.yml
shishir-intelli Sep 20, 2022
83da90b
codecov 15
shishir-intelli Sep 20, 2022
dd2d39d
codecov 15
shishir-intelli Sep 20, 2022
e7f485e
Update .codecov.yml
shishir-intelli Sep 20, 2022
7727d0f
Update .codecov.yml
shishir-intelli Sep 20, 2022
c0a0dc5
codecov 16
shishir-intelli Sep 20, 2022
bea4eaa
code cov 17
shishir-intelli Sep 20, 2022
82fe859
codecov 17
shishir-intelli Sep 20, 2022
9e86758
Update php.yml
shishir-intelli Sep 20, 2022
fca8b14
Update php.yml
shishir-intelli Sep 20, 2022
0095fcb
Update php.yml
shishir-intelli Sep 20, 2022
6dd59de
Update php.yml
shishir-intelli Sep 20, 2022
6074b9f
Update php.yml
shishir-intelli Sep 20, 2022
5147306
new 1
shishir-intelli Sep 20, 2022
bb84228
Update php.yml
shishir-intelli Sep 20, 2022
fb1ba8d
new 2
shishir-intelli Sep 20, 2022
2a996d7
coverage1
shishir-intelli Sep 20, 2022
568cb4c
covergae2
shishir-intelli Sep 20, 2022
244f6e8
coverage 3
shishir-intelli Sep 20, 2022
6b8d3e1
coverage 4
shishir-intelli Sep 20, 2022
bf24ad4
New_21_1
shishir-intelli Sep 21, 2022
1e67755
new 21 2
shishir-intelli Sep 21, 2022
45c8371
new 21 3
shishir-intelli Sep 21, 2022
3e1d4b0
new 21 5
shishir-intelli Sep 21, 2022
8d1b79c
codecoverage update
shishir-intelli Sep 21, 2022
806d914
new 21 6
shishir-intelli Sep 21, 2022
bbd140f
codecoverage update 2
shishir-intelli Sep 21, 2022
2c700eb
Update phpunit.core.xml.dist
shishir-intelli Sep 21, 2022
aa834a6
coverage 6
shishir-intelli Sep 21, 2022
772915f
coverage 8
shishir-intelli Sep 21, 2022
55972e9
Update php.yml
shishir-intelli Sep 21, 2022
1aa4ee3
Update phpunit.core.xml.dist
shishir-intelli Sep 21, 2022
bde6af1
Update phpunit.core.xml.dist
shishir-intelli Sep 21, 2022
8b08f71
Update .codecov.yml
shishir-intelli Sep 21, 2022
c1d1d0d
Update php.yml
shishir-intelli Sep 21, 2022
c0b7e8f
updated phpunit.xml
shishir-intelli Sep 21, 2022
140415c
updated phpunit.xml
shishir-intelli Sep 21, 2022
1029779
Update phpunit.core.xml.dist
shishir-intelli Sep 21, 2022
368ab85
Update php.yml
shishir-intelli Sep 21, 2022
f3420b8
Update php.yml
shishir-intelli Sep 21, 2022
34d46c9
Update php.yml
shishir-intelli Sep 21, 2022
6963d2c
dekthis
shishir-intelli Sep 21, 2022
5756e70
delthis 2
shishir-intelli Sep 21, 2022
0880459
Update php.yml
shishir-intelli Sep 21, 2022
329a26e
delthis 4
shishir-intelli Sep 21, 2022
9c61c9a
delthis 6
shishir-intelli Sep 21, 2022
ba905ca
delthis phpunit
shishir-intelli Sep 21, 2022
ddfcc79
delthis 8
shishir-intelli Sep 21, 2022
bd6fc43
delthis 8
shishir-intelli Sep 21, 2022
8576752
delthis 9
shishir-intelli Sep 21, 2022
0d83940
delthis 10
shishir-intelli Sep 21, 2022
6311332
delthis 11
shishir-intelli Sep 21, 2022
4d05f05
delthis 11
shishir-intelli Sep 21, 2022
71517cc
delethis 1
shishir-intelli Sep 22, 2022
8ad9d1e
Update php.yml
shishir-intelli Sep 22, 2022
065020f
removed fileter
shishir-intelli Sep 22, 2022
de24a03
PHPUNIT xml file original
shishir-intelli Sep 22, 2022
254da81
codecov yml original
shishir-intelli Sep 22, 2022
79b9c32
Back to Original
shishir-intelli Sep 22, 2022
4fcdd79
Backto Original 2
shishir-intelli Sep 22, 2022
8ea8758
try 1
shishir-intelli Sep 22, 2022
4e64ecf
try 2
shishir-intelli Sep 22, 2022
c954a18
try 4
shishir-intelli Sep 22, 2022
107a44d
rollback
shishir-intelli Sep 22, 2022
c96e106
updated with log
shishir-intelli Sep 22, 2022
c408c79
path fix
shishir-intelli Sep 22, 2022
2bd18d6
fix path 2
shishir-intelli Sep 22, 2022
89ca18e
Update .codecov.yml
shishir-intelli Sep 22, 2022
56615ac
push pull test
shishir-intelli Sep 22, 2022
ea7ac29
removed pull
shishir-intelli Sep 22, 2022
de80382
back to original
shishir-intelli Sep 22, 2022
5712a0b
testingcodecov
shishir-intelli Sep 22, 2022
26a8ee6
All set
shishir-intelli Sep 23, 2022
71621d2
removed token
shishir-intelli Sep 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
codecov:
require_ci_to_pass: yes

github_checks:
annotations: yes
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
show_carryforward_flags: no

fixes:
- "drupal/modules/contrib/apigee_api_catalog::/"
46 changes: 24 additions & 22 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
BROWSERTEST_OUTPUT_DIRECTORY: "sites/simpletest/browser_output"
BROWSERTEST_OUTPUT_BASE_URL: ""
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", { "chromeOptions": { "w3c": false } }, "http://127.0.0.1:9515/wd/hub"]'

on:
push:
pull_request_target:
Expand Down Expand Up @@ -44,11 +44,11 @@ jobs:
run: |
echo "Disable deprecations check"
echo "SYMFONY_DEPRECATIONS_HELPER=disabled" >> $GITHUB_ENV

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
coverage: "xdebug"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv, opcache, imagick
Expand Down Expand Up @@ -83,57 +83,59 @@ jobs:
composer config --json extra.patches."drupal/core" '{ "Support entities that are neither content nor config entities": "https://www.drupal.org/files/issues/2020-12-02/3042467-50.patch"}'
composer update --with-all-dependencies
composer require --dev phpspec/prophecy-phpunit:^2

# Install drupal using minimal installation profile and enable the module.
- name: Install Drupal
run: |
cd drupal
php -d sendmail_path=$(which true); vendor/bin/drush --yes -v site-install minimal --db-url="$SIMPLETEST_DB"
vendor/bin/drush rs 8000 &

- name: "PHPCS"
run: |
cd drupal
cp modules/contrib/apigee_api_catalog/phpcs.xml.dist .
vendor/bin/phpcs --standard=./phpcs.xml.dist modules/contrib/apigee_api_catalog -p -s -n --colors
composer show > composer.show.txt

- name: Artifacts
uses: actions/upload-artifact@v3
with:
name: composer-${{ matrix.php-version }}-${{ matrix.drupal-core }}-artifact
path: drupal/composer.*

- name: "PHPUnit unit"
run: |
cd drupal
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite unit

- name: "PHPUnit kernel"
run: |
cd drupal
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite kernel

- uses: nanasess/setup-chromedriver@v1

- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional

- name: "PHPUnit functional javascript"

- name: "Run PHPUnit"
if: ${{ matrix.drupal-core != '9.4.x' || matrix.php-version != '8.1' }}
run: |
cd drupal
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite functional-javascript

- name: "PHPUnit functional"
vendor/bin/phpunit -c core --verbose --debug --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript modules/contrib/apigee_api_catalog

- name: "PHPUnit Test with Code Coverage"
if: ${{ matrix.drupal-core == '9.4.x' && matrix.php-version == '8.1' }}
run: |
cd drupal
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite functional
cp modules/contrib/apigee_api_catalog/phpunit.core.xml.dist core/phpunit.xml
vendor/bin/phpunit -c core --verbose --debug --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript --coverage-clover /tmp/coverage.xml modules/contrib/apigee_api_catalog

- name: Artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: browser-output-${{ matrix.php-version }}-${{ matrix.drupal-core }}-artifact
path: drupal/sites/simpletest/browser_output/*

- name: Upload coverage to Codecov
if: ${{ matrix.drupal-core == '9.4.x' && matrix.php-version == '8.1' }}
uses: codecov/codecov-action@v3
with:
files: /tmp/coverage.xml
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
27 changes: 11 additions & 16 deletions phpunit.core.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,18 @@
</listeners>
<!-- Filter for coverage reports. -->
<filter>
<whitelist>
<directory>./includes</directory>
<directory>./lib</directory>
<!-- Extensions can have their own test directories, so exclude those. -->
<directory>./modules</directory>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>../modules/contrib/apigee_api_catalog</directory>
<!-- By definition test classes have no tests. -->
<exclude>
<directory>./modules/*/src/Tests</directory>
<directory>./modules/*/tests</directory>
<directory>../modules/contrib/apigee_api_catalog/tests</directory>
<directory>../modules/contrib/apigee_api_catalog/test_modules</directory>
</exclude>
<directory>../modules</directory>
<exclude>
<directory>../modules/*/src/Tests</directory>
<directory>../modules/*/tests</directory>
<directory>../modules/*/*/src/Tests</directory>
<directory>../modules/*/*/tests</directory>
</exclude>
<directory>../sites</directory>
</whitelist>
</whitelist>
</filter>
<!-- Define the results that we need. -->
<logging>
<log type="coverage-clover" target="../../reports/phpunit/tests-clover.xml"/>
<log type="junit" target="../../reports/phpunit/tests-junit.xml" logIncompleteSkipped="false"/>
</logging>
</phpunit>