Move setting of TZ variable into Makefile so it is always set even if doing local development in a different timezone

This commit is contained in:
David Dworken 2023-09-02 18:28:37 -07:00
parent a2617e970a
commit 069705ef41
No known key found for this signature in database
2 changed files with 3 additions and 8 deletions

View File

@ -54,11 +54,6 @@ jobs:
- name: Go test
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
run: |
# Force the time zone so that test output is consistent
export TZ='America/Los_Angeles'
# Run the tests
make test
# - name: Setup tmate session
# if: ${{ failure() }}

View File

@ -1,13 +1,13 @@
forcetest:
go clean -testcache
HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -p 1 -timeout 45m ./...
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -p 1 -timeout 45m ./...
test:
HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -p 1 -timeout 45m ./...
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -p 1 -timeout 45m ./...
ftest:
go clean -testcache
HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -v -p 1 -run "$(FILTER)" ./...
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -v -p 1 -run "$(FILTER)" ./...
acttest:
act push -j test -e .github/push_event.json --reuse --container-architecture linux/amd64