refactor: When is zero time, the String method does not return an emp… #1374
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push | |
env: | |
TZ: "UTC" | |
jobs: | |
test: | |
strategy: | |
matrix: | |
vm-os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.vm-os }} | |
env: | |
GO111MODULE: on | |
GOPROXY: https://goproxy.cn | |
steps: | |
- name: Set up go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.21.0' | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create coverage file | |
run: go test -coverprofile='coverage.txt' -covermode=atomic | |
- name: Upload coverage file | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} |