From 5483866356dc0c886184f5b451834df8bb6c694b Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 13 Dec 2024 10:04:02 +0800 Subject: [PATCH] . --- .github/workflows/go.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f945f4e..2411db2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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