mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-26 04:08:01 +03:00
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:
parent
73a39ead9a
commit
e2519848c1
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user