-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f29d54b
commit 19ef67f
Showing
6 changed files
with
80 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go: [ '1.22.x' ] | ||
os: [ ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Test | ||
run: go test ./... -coverprofile=coverage.txt | ||
- name: Create Tag | ||
if: success() # 仅在测试成功时运行 | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email 'github-actions@github.com' | ||
TAG="v0.0.1-$(date +'%Y%m%d%H%M%S')" | ||
git tag $TAG | ||
git push origin $TAG | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package cputest | ||
|
||
const CpuTestVersion = "v0.0.1" // git tag v0.0.1 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
module github.com/oneclickvirt/cpuTest | ||
|
||
go 1.21.5 | ||
go 1.22.4 | ||
|
||
require ( | ||
github.com/PuerkitoBio/goquery v1.9.2 | ||
github.com/oneclickvirt/defaultset v0.0.2-20240624082446 | ||
github.com/parnurzeal/gorequest v0.3.0 | ||
) | ||
|
||
require ( | ||
github.com/PuerkitoBio/goquery v1.9.2 // indirect | ||
github.com/andybalholm/cascadia v1.3.2 // indirect | ||
github.com/elazarl/goproxy v0.0.0-20240618083138-03be62527ccb // indirect | ||
github.com/moul/http2curl v1.0.0 // indirect | ||
github.com/parnurzeal/gorequest v0.3.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/smartystreets/goconvey v1.8.1 // indirect | ||
go.uber.org/multierr v1.10.0 // indirect | ||
go.uber.org/zap v1.27.0 // indirect | ||
golang.org/x/net v0.25.0 // indirect | ||
) |
This file contains 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