Skip to content

Commit

Permalink
Merge pull request #249 from UN-OCHA/tests/consistency
Browse files Browse the repository at this point in the history
tests: adjust for consistency
  • Loading branch information
lazysoundsystem authored Apr 8, 2024
2 parents de58096 + aea95d1 commit 1388a6a
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/composer-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ jobs:
patch_branch: 'develop'
patch_maintainers: ${{ secrets.DRUPAL_MAINTAINERS }}
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
slack_channel_name: ${{ secrets.SLACK_CHANNEL }}
flowdock_token: ${{ secrets.FLOWDOCK_TOKEN }}
slack_channel_name: ${{ vars.SLACK_CHANNEL }}
29 changes: 25 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
### Build output
### Test run output
#### Composer Validate `${{ steps.validate.outcome }}`
#### PHP Lint `${{ steps.lint.outcome }}`
#### Docker Build `${{ steps.build.outcome }}`
Expand All @@ -208,6 +208,27 @@ jobs:
<details><summary>Software Versions</summary>
<code>${{ steps.versions.outputs.stdout }}</code>
</details>
<details><summary>Composer Validate</summary>
<code>${{ steps.validate.outputs.stdout }}</code>
<code>${{ steps.validate.outputs.stderr }}</code>
</details>
<details><summary>PHP Lint</summary>
<code>${{ steps.lint.outputs.stdout }}</code>
<code>${{ steps.lint.outputs.stderr }}</code>
</details>
<details><summary>PHPCS</summary>
<code>${{ steps.phpcs.outputs.stdout }}</code>
<code>${{ steps.phpcs.outputs.stderr }}</code>
</details>
<details><summary>Tests</summary>
<code>${{ steps.tests.outputs.stdout }}</code>
<code>${{ steps.tests.outputs.stderr }}</code>
</details>
<details><summary>Drupal Logs</summary>
<code>${{ steps.dblog.outputs.stdout }}</code>
</details>
Expand All @@ -220,7 +241,7 @@ jobs:
if: ${{ !env.ACT && success() }}
uses: slackapi/[email protected]
with:
channel-id: '${{ secrets.SLACK_CHANNEL }}'
channel-id: '${{ vars.SLACK_CHANNEL }}'
payload: |
{
"text": "Tests passed for a pull request on ${{ github.repository }}",
Expand All @@ -247,7 +268,7 @@ jobs:
if: ${{ !env.ACT && failure() }}
uses: slackapi/[email protected]
with:
channel-id: '${{ secrets.SLACK_CHANNEL }}'
channel-id: '${{ vars.SLACK_CHANNEL }}'
payload: |
{
"text": "Tests failed for a pull request on ${{ github.repository }}",
Expand Down Expand Up @@ -275,6 +296,6 @@ jobs:
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml down
docker compose -f tests/docker-compose.yml down --rmi local -v
env:
fail-fast: true
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"drupal/coder": "^8.3",
"drupal/config_filter": "^2.2",
"drupal/devel": "^5.0",
"drupal/stage_file_proxy": "^2.1",
"kint-php/kint": "^5",
"mikey179/vfsstream": "^1.6",
"phpcompatibility/php-compatibility": "^9.3",
Expand Down
103 changes: 100 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1388a6a

Please sign in to comment.