Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Dec 13, 2024
1 parent 9cf99df commit 5483866
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.20
go-version: 1.21
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Get dependencies
run: |
if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
go get github.com/axw/gocov/gocov
go get github.com/mattn/goveralls
go get ./cmd/pinyin
- name: Check Code
uses: actions/checkout@v4

- name: Test
run: |
go run cmd/pinyin/main.go abc
go run cmd/pinyin/main.go -s zhao abc
echo "abc" | go run cmd/pinyin/main.go
echo "abc" > abc.txt && go run cmd/pinyin/main.go < abc.txt
make test

0 comments on commit 5483866

Please sign in to comment.