Skip to content

Commit

Permalink
update go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
likexian committed Apr 29, 2024
1 parent 911434f commit d233eed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gotest.yaml
Expand Up @@ -18,32 +18,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Golangci lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: -v
test:
strategy:
fail-fast: false
matrix:
go: [1.17.x, 1.18.x, 1.19.x, 1.20.x]
go: [1.19.x, 1.20.x, 1.21.x, 1.22.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: GoTest code
run: |
sudo go test -race -coverprofile="coverage.txt" -covermode=atomic ./...
coverage=$(go tool cover -func=coverage.txt | grep total | grep -Eo '[0-9]+\.[0-9]+')
echo "{\"coverage\": $coverage}"
if [[ "${{ matrix.go }}" == "1.20.x" ]]; then
if [[ "${{ matrix.go }}" == "1.22.x" ]]; then
repository=$(echo '${{ github.repository }}' | awk -F'/' '{print $2}')
curl -A "coverage client/1.0.0" -H "X-Release-Token:${{ secrets.RELEASE_TOKEN }}" -F "coverage=$coverage" https://release.likexian.com/$repository/coverage
fi
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Expand Up @@ -21,9 +21,9 @@ jobs:
goarch: "386"
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Release code
uses: likexian/go-release-action@v0.6.0
uses: likexian/go-release-action@v0.7.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOS: ${{ matrix.goos }}
Expand Down
6 changes: 3 additions & 3 deletions go.mod
@@ -1,10 +1,10 @@
module github.com/likexian/whois

go 1.20
go 1.21

require (
github.com/likexian/gokit v0.25.13
github.com/likexian/whois-parser v1.24.12
github.com/likexian/gokit v0.25.15
github.com/likexian/whois-parser v1.24.15
golang.org/x/net v0.24.0
)

Expand Down
8 changes: 4 additions & 4 deletions go.sum
@@ -1,7 +1,7 @@
github.com/likexian/gokit v0.25.13 h1:p2Uw3+6fGG53CwdU2Dz0T6bOycdb2+bAFAa3ymwWVkM=
github.com/likexian/gokit v0.25.13/go.mod h1:qQhEWFBEfqLCO3/vOEo2EDKd+EycekVtUK4tex+l2H4=
github.com/likexian/whois-parser v1.24.12 h1:3YnoBlpQMGmTdBr33SW/VxHxe2osuss4sN7E2KH7V/U=
github.com/likexian/whois-parser v1.24.12/go.mod h1:b6STMHHDaSKbd4PzGrP50wWE5NzeBUETa/hT9gI0G9I=
github.com/likexian/gokit v0.25.15 h1:QjospM1eXhdMMHwZRpMKKAHY/Wig9wgcREmLtf9NslY=
github.com/likexian/gokit v0.25.15/go.mod h1:S2QisdsxLEHWeD/XI0QMVeggp+jbxYqUxMvSBil7MRg=
github.com/likexian/whois-parser v1.24.15 h1:wAZbvVdUHxyF4A0EURrr7YtfSO9GD79ovUdDVDRXFYY=
github.com/likexian/whois-parser v1.24.15/go.mod h1:k5zmKRZ7xPg1TLv3BGT4g/LOPRIMhvdNMeB0F53V/jk=
golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w=
golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
Expand Down

0 comments on commit d233eed

Please sign in to comment.