Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy 28-08-2024 #357

Merged
merged 19 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a901db9
chore: Update all outdated drupal/* unocha/* drush/* packages.
unocha-jenkins Aug 8, 2024
ff4d770
feat: Grep PHP logs on failure
cafuego Aug 8, 2024
6b47e82
Merge branch 'develop' into update/patch-d3ce1b1
lazysoundsystem Aug 14, 2024
408aac0
chore: Update all outdated drupal/* unocha/* drush/* packages.
unocha-jenkins Aug 15, 2024
9e89d41
Update PHPUnit
attiks Aug 16, 2024
e16c7fb
chore: Split step
attiks Aug 16, 2024
53f964a
chore: Do not fail on import
attiks Aug 16, 2024
6efda2b
chore: Do not fail on import
attiks Aug 16, 2024
74d1f76
Merge pull request #352 from UN-OCHA/update/patch-43c01a4
attiks Aug 16, 2024
909c143
chore(deps-dev): Bump axios
dependabot[bot] Aug 16, 2024
4726415
Merge pull request #353 from UN-OCHA/dependabot/npm_and_yarn/html/the…
lazysoundsystem Aug 19, 2024
36c706b
Merge branch 'develop' into update/patch-d3ce1b1
lazysoundsystem Aug 19, 2024
e5ecab3
Merge pull request #345 from UN-OCHA/update/patch-d3ce1b1
lazysoundsystem Aug 19, 2024
f5d5317
chore: domains for google ads
lazysoundsystem Aug 19, 2024
d7f1ac7
Merge pull request #354 from UN-OCHA/OPS-10638-more-csp
lazysoundsystem Aug 19, 2024
369a114
chore: straighten csp settings
lazysoundsystem Aug 19, 2024
38cd44d
Merge pull request #355 from UN-OCHA/OPS-10638-more-csp
lazysoundsystem Aug 19, 2024
49c5fb2
chore: Update all outdated drupal/* unocha/* drush/* packages.
unocha-jenkins Aug 22, 2024
45d198c
Merge pull request #356 from UN-OCHA/update/patch-38cd44d
lazysoundsystem Aug 22, 2024
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
30 changes: 28 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,21 @@ jobs:
env:
fail-fast: true

- name: Run tests
id: tests
- name: Import test content
id: import
continue-on-error: true
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal drush -y en dblog
docker compose -f tests/docker-compose.yml exec -T drupal drush en yaml_content -y
docker compose -f tests/docker-compose.yml exec -T drupal drush yaml-content-import /srv/www/tests

- name: Make directories
id: dirs
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal chmod -R 777 /srv/www/html/sites/default/files /srv/www/html/sites/default/private
docker compose -f tests/docker-compose.yml exec -T drupal mkdir -p /srv/www/html/build/logs
docker compose -f tests/docker-compose.yml exec -T drupal chmod -R 777 /srv/www/html/build/logs
Expand All @@ -146,6 +153,14 @@ jobs:
docker compose -f tests/docker-compose.yml exec -T drupal chmod -R 777 /srv/www/coverage
docker compose -f tests/docker-compose.yml exec -T drupal mkdir -p /srv/www/html/sites/simpletest
docker compose -f tests/docker-compose.yml exec -T drupal chmod -R 777 /srv/www/html/sites/simpletest
env:
fail-fast: true

- name: Run tests
id: tests
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml exec -u appuser -T -w /srv/www -e XDEBUG_MODE=coverage -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output -e DTT_BASE_URL=http://127.0.0.1 -e SIMPLETEST_BASE_URL=http://127.0.0.1 drupal ./vendor/bin/phpunit --coverage-clover /srv/www/html/build/logs/clover.xml --debug
env:
fail-fast: true
Expand Down Expand Up @@ -175,6 +190,14 @@ jobs:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal drush watchdog:show

- name: PHP Logs
id: phplog
if: failure()
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal grep -i fatal /var/log/php/error.log

- name: Find Comment
uses: peter-evans/find-comment@v3
if: ${{ !env.ACT }}
Expand Down Expand Up @@ -207,6 +230,9 @@ jobs:
<details><summary>Drupal Logs</summary>
<code>${{ steps.dblog.outputs.stdout }}</code>
</details>
<details><summary>PHP Logs</summary>
<code>${{ steps.phplog.outputs.stdout }}</code>
</details>

*Pusher: @${{ github.actor }}, Action: `${{ github.event_name }}`, Workflow: `${{ github.workflow }}`*
edit-mode: replace
Expand Down
Loading
Loading