Skip to content

Commit 8ddb100

Browse files
committed
feat(ci): when building and testing the package, randomize the runner’s timezone in order to provoke timezone-related bugs
1 parent bb6a0d1 commit 8ddb100

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/_build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
python: ['3.10', '3.11']
5353
steps:
5454

55+
# Randomize the runner's timezone in order to provoke related bugs and misbehaviors.
56+
- name: Randomize Runner timezone
57+
run: |
58+
sudo timedatectl set-timezone "$(timedatectl list-timezones | uniq | shuf --head-count 1)"
59+
timedatectl status
60+
5561
- name: Harden Runner
5662
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
5763
with:

0 commit comments

Comments
 (0)