Skip to content

Commit

Permalink
feat(main): 修改构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
BadKid90s committed Jan 28, 2024
1 parent 2881349 commit 6bc255a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21

- name: Example-Module
run: |
go format -v ./example/...
go build -v ./example/...
go test -v ./example/...
- name: Example-Module
run: |
cd ./example
go fmt ./...
go build ./...
go test ./...
- name: Knife-Module
run: |
go format -v ./knife/...
go build -v ./knife/...
go test -v ./knife/...
- name: Knife-Module
run: |
cd ./knife
go fmt ./...
go build ./...
go test ./...

0 comments on commit 6bc255a

Please sign in to comment.