Skip to content

Commit

Permalink
ci: test_and_lint 微调 (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID authored Oct 18, 2023
1 parent 958a9cd commit ec4fa3a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,26 @@ name: Test & Lint
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18]
steps:
- name: Code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Code
uses: actions/checkout@v3
go-version: stable
- run: go get
- run: go generate ./...
- run: go test -v -race ./...

lint:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Code
uses: actions/checkout@v3
go-version: stable
- run: go get
- run: go generate ./...
- name: Go vet
Expand Down

0 comments on commit ec4fa3a

Please sign in to comment.