mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-26 00:39:02 +01:00
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:
parent
a2617e970a
commit
069705ef41
5
.github/workflows/go-test.yml
vendored
5
.github/workflows/go-test.yml
vendored
@ -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() }}
|
||||
|
6
Makefile
6
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user