You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/01/05 15:22:20 UTC
[iotdb-client-go] branch main updated: fix github actions for
setting timezone (#7)
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git
The following commit(s) were added to refs/heads/main by this push:
new c075f4c fix github actions for setting timezone (#7)
c075f4c is described below
commit c075f4c46d80aea4302636d7731dc53ad4740d7e
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue Jan 5 23:22:14 2021 +0800
fix github actions for setting timezone (#7)
---
.github/workflows/go.yml | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 90a54fa..cc92624 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -6,8 +6,10 @@ on:
pull_request:
branches: [ main ]
-jobs:
+env:
+ TZ: Asia/Shanghai
+jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
@@ -16,13 +18,6 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- - name: Setup timezone
- uses: szenius/set-timezone@v1.0
- with:
- timezoneLinux: "Asia/Shanghai"
- timezoneMacos: "Asia/Shanghai"
- timezoneWindows: "China Standard Time"
-
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
@@ -34,13 +29,17 @@ jobs:
- name: Get dependencies
run: |
go get -v -t -d ./...
- # if [ -f Gopkg.toml ]; then
- # curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- # dep ensure
- # fi
- name: Build
run: go build -v ./...
+ - name: Set timezone
+ if : matrix.os == 'windows-latest'
+ run: |
+ tzutil /g
+ tzutil /s "China Standard Time"
+ tzutil /g
+ shell: cmd
+
- name: Test
run: go test -v ./...