Skip to content

Commit

Permalink
Fix: CI for day/month date tests (#377)
Browse files Browse the repository at this point in the history
* Logging of testrun context, with explicit locale setting

* Stepwise check for yml typos

* Fix yml indent

---------

Co-authored-by: Derek Crannaford <[email protected]>
  • Loading branch information
DerekCrannaford and Derek Crannaford authored Sep 26, 2024
1 parent 2dee6e5 commit bd54b5d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ jobs:
- name: Setup cmfive Test Environment
run: |
docker exec -t cmfive sh -c "chmod -R ugo=rwX /var/www/html*"
sudo locale-gen en_AU.UTF-8
sudo update-locale en_AU.UTF-8
LANG=en_AU.UTF-8
LC_ALL=en_AU.UTF-8
echo "Test Execution context:"
echo "Runner locale info"
date
locale
echo "Web host timezone"
docker exec -t cmfive sh -c "date"
- name: Inject configs into cmfive Test Environment
run: |
Expand Down Expand Up @@ -270,7 +280,19 @@ jobs:
if [ $? -gt 0 ]; then
echo "Timelog module tests failed"
fi
- name: Get source code details
if: ${{ failure() }} || ${{ success() }}
run: |
echo ">> CONTAINER LABELS (BOILERPLATE) <<"
echo "===================================="
docker inspect --format='{{range $key, $value := .Config.Labels}}{{$key}}={{$value}}{{println}}{{end}}' cmfive
echo ""
echo ""
echo ">> CORE COMMIT DETAILS <<"
echo "========================="
docker exec -u cmfive cmfive sh -c "cd composer/vendor/2pisoftware/cmfive-core && git log -n 1"
- name: Get container logs
if: ${{ failure() }} || ${{ success() }}
run: |
Expand Down

0 comments on commit bd54b5d

Please sign in to comment.