Skip to content

Commit

Permalink
Reorder & add ver & bench
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Mar 20, 2023
1 parent 98f4645 commit 53335fa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ jobs:
go: ['stable', 'oldstable']

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true

- name: Check out code
uses: actions/checkout@v3

- name: Go Format
run: gofmt -s -w . && git diff --exit-code

- name: Go Vet
run: go vet ./...

- name: Go Tidy
run: go mod tidy && git diff --exit-code

Expand All @@ -63,6 +66,10 @@ jobs:
if: ${{ !inputs.skipTests }}
run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...

- name: Go Benchmark
if: ${{ !inputs.skipTests }}
run: go test -v -shuffle=on -run=- -bench=. -benchtime=1x ./...

- name: Upload Coverage
if: ${{ !inputs.skipTests }}
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 53335fa

Please sign in to comment.