Set CI timezone to non-UTC to catch timezone-related issues (#19676)

- this helps catch test failures that are due to us writing timezone dependent code

Co-authored-by: Daniel Lockyer <hi@daniellockyer.com>
This commit is contained in:
Laurent Goderre 2024-10-16 09:35:47 -04:00 committed by GitHub
parent 73a39ead9a
commit e2519848c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -445,6 +445,11 @@ jobs:
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_setup.outputs.dependency_cache_key }}
- name: Set timezone (non-UTC)
uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "America/New_York"
- run: yarn nx affected -t test:unit --base=${{ needs.job_setup.outputs.BASE_COMMIT }}
- uses: actions/upload-artifact@v4
@ -504,6 +509,11 @@ jobs:
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_setup.outputs.dependency_cache_key }}
- name: Set timezone (non-UTC)
uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "America/New_York"
- name: Record start time
run: date +%s > ${{ runner.temp }}/startTime # Get start time for test suite