diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf3224e..e3ae835 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,11 +16,13 @@ jobs: go: - '^1.20' - '^1.21' + - '^1.22' + - '^1.23' steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: vet @@ -32,7 +34,7 @@ jobs: - name: Test Coverage (pkg) run: go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }} - name: Upload coverage - if: ${{ matrix.go == '^1.21' }} + if: ${{ matrix.go == '^1.23' }} uses: codecov/codecov-action@v3 with: files: ${{ steps.vars.outputs.coverage_txt }} diff --git a/LICENSE b/LICENSE index 58ccadd..fd850bb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 codehex +Copyright (c) 2024 codehex Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..ecb7861 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +ignore: + - "tz" \ No newline at end of file diff --git a/go.mod b/go.mod index d9abc5d..f2443c4 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/Code-Hex/synchro -go 1.20.0 +go 1.23.4 -require github.com/google/go-cmp v0.5.9 +require github.com/google/go-cmp v0.6.0 -require github.com/itchyny/timefmt-go v0.1.5 +require github.com/itchyny/timefmt-go v0.1.6 diff --git a/go.sum b/go.sum index 29f8b12..11195e7 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE= -github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/itchyny/timefmt-go v0.1.6 h1:ia3s54iciXDdzWzwaVKXZPbiXzxxnv1SPGFfM/myJ5Q= +github.com/itchyny/timefmt-go v0.1.6/go.mod h1:RRDZYC5s9ErkjQvTvvU7keJjxUYzIISJGxm9/mAERQg= diff --git a/time_test.go b/time_test.go index c1aa9e8..7fe8a1c 100644 --- a/time_test.go +++ b/time_test.go @@ -632,5 +632,5 @@ func ExampleStrptime() { fmt.Println("error", err) // Returns an error as the layout is not a valid time value // Output: // 2023-09-02 14:09:56 +0900 JST - // error failed to parse "invalid" with "%Y": cannot parse %Y + // error failed to parse "invalid" with "%Y": cannot parse "%Y" }