Skip to content

Commit cbfc23a

Browse files
authored
Merge pull request #1673 from droidsolutions/fix/coveralls-timezone
ci: Set TZ in coverage job to fix coveralls reporter
2 parents 278da99 + 513b0c3 commit cbfc23a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
runs-on: ubuntu-latest
3030
container: mcr.microsoft.com/dotnet/sdk:10.0
3131
name: coverage
32+
env:
33+
# The dotnet/sdk:10.0 image ships /etc/timezone containing "/UTC" (and
34+
# /etc/localtime -> /usr/share/zoneinfo//UTC). The coveralls reporter is a
35+
# Crystal binary and Time::Location rejects a name starting with "/",
36+
# crashing with InvalidLocationNameError. Setting TZ bypasses the lookup.
37+
TZ: UTC
3238
services:
3339
# Label used to access the service container
3440
postgres:

0 commit comments

Comments
 (0)