Skip to content

Commit ad48418

Browse files
committed
test posting message
1 parent 64916d9 commit ad48418

File tree

2 files changed

+67
-7
lines changed

2 files changed

+67
-7
lines changed

.github/workflows/drupal-tests-and-standards.yml

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ jobs:
185185
run: |
186186
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
187187
composer require --dev "drupal/coder"
188+
composer require bluecadet/bc_composer_ci_tools:^1.x
188189
189190
# Install Drupal using minimal installation profile and enable the module.
190191
- name: Install Drupal
@@ -198,14 +199,26 @@ jobs:
198199
working-directory: ${{ env.DRUPAL_ROOT }}
199200
continue-on-error: true
200201
run: |
201-
vendor/bin/phpcs -s --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt --ignore=node_modules,bower_components,vendor,dist --exclude=Drupal.InfoFiles.AutoAddedKeys --colors $MODULE_FOLDER
202-
vendor/bin/phpcs -s --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt --ignore=node_modules,bower_components,vendor,dist --exclude=Drupal.InfoFiles.AutoAddedKeys --colors $MODULE_FOLDER
202+
vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
203+
vendor/bin/phpcs --config-set ignore_errors_on_exit 1
204+
vendor/bin/phpcs -s --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt --ignore=node_modules,bower_components,vendor,dist --exclude=Drupal.InfoFiles.AutoAddedKeys --report=Bluecadet\\PHPCS\\Report\\Markdown $MODULE_FOLDER
205+
vendor/bin/phpcs -s --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt --ignore=node_modules,bower_components,vendor,dist --exclude=Drupal.InfoFiles.AutoAddedKeys --report=Bluecadet\\PHPCS\\Report\\Markdown $MODULE_FOLDER >> styling_report.md
206+
vendor/bin/phpcs -s --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,json --ignore=node_modules,bower_components,vendor,dist --exclude=Drupal.InfoFiles.AutoAddedKeys --report=Bluecadet\\PHPCS\\Report\\Markdown $MODULE_FOLDER >> styling_report.md
203207
204-
- name: Run Drupal-Check
205-
working-directory: ${{ env.DRUPAL_ROOT }}
206-
continue-on-error: true
207-
run: |
208-
php vendor/bin/drupal-check $MODULE_FOLDER --drupal-root ${{ env.DRUPAL_ROOT }}
208+
# npm i -g github:10up/phpcs-json-to-md
209+
# phpcs-json-to-md --path ./styling_report1.json --output ./styling_report1.md
210+
# cat styling_report1.md >> $GITHUB_STEP_SUMMARY
211+
212+
PHPCS_REPORT=`cat styling_report.md`
213+
echo "PHPCS_REPORT=$PHPCS_REPORT" >> $GITHUB_ENV
214+
echo $PHPCS_REPORT >> $GITHUB_STEP_SUMMARY
215+
# echo "### Hello world! :rocket:" >> $GITHUB_STEP_SUMMARY
216+
217+
# - name: Run Drupal-Check
218+
# working-directory: ${{ env.DRUPAL_ROOT }}
219+
# continue-on-error: true
220+
# run: |
221+
# php vendor/bin/drupal-check $MODULE_FOLDER --drupal-root ${{ env.DRUPAL_ROOT }}
209222

210223
- name: Start Drush webserver and chromedriver
211224
working-directory: ${{ env.DRUPAL_ROOT }}
@@ -247,3 +260,40 @@ jobs:
247260
continue-on-error: true
248261
run: |
249262
vendor/bin/phpunit --bootstrap $DRUPAL_ROOT/core/tests/bootstrap.php -c $MODULE_FOLDER/phpunit.xml $MODULE_FOLDER
263+
264+
# - uses: actions/github-script@v6
265+
# id: get_issue_number
266+
# with:
267+
# script: |
268+
# if (context.issue.number) {
269+
# // Return issue number if present
270+
# return context.issue.number;
271+
# } else {
272+
# // Otherwise return issue number from commit
273+
# return (
274+
# await github.rest.repos.listPullRequestsAssociatedWithCommit({
275+
# commit_sha: context.sha,
276+
# owner: context.repo.owner,
277+
# repo: context.repo.repo,
278+
# })
279+
# ).data[0].number;
280+
# }
281+
# result-encoding: string
282+
283+
# - uses: actions/github-script@v6
284+
# env:
285+
# prn: ${{ steps.get_issue_number.outputs.result }}
286+
# PHPCS_REPORT: ${{ env.PHPCS_REPORT }}
287+
# with:
288+
# script: |
289+
# console.log(context)
290+
# console.log(process.env)
291+
292+
# const { prn, PHPCS_REPORT } = process.env
293+
294+
# github.rest.issues.createComment({
295+
# issue_number: 35,
296+
# owner: context.repo.owner,
297+
# repo: context.repo.repo,
298+
# body: 'hello world'
299+
# })

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,13 @@ line as well as the location for the module.
104104
### 8.x-3.0.1
105105

106106
- Added in styles for Claro Admin theme.
107+
108+
<br>
109+
<br>
110+
<br>
111+
112+
## Proudly developed @ Bluecadet
113+
114+
<p style="background-color: white; padding: 20px">
115+
<a href="https://www.bluecadet.com/"><img style="max-width: 50%; min-width: 300px;" src="https://www.bluecadet.com/wp-content/themes/bluecadet-2018/images/logo/logo-bluecadet-black.svg" alt="Bluecadet"></a>
116+
</p>

0 commit comments

Comments
 (0)