Skip to content

Commit

Permalink
Add benchmarks to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wafer-bw committed Aug 20, 2023
1 parent 6df20c6 commit 1936c7a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,23 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov

benchmark:
name: benchmark
runs-on: ubuntu-latest
timeout-minutes: 2
strategy:
matrix:
go: [stable]
fail-fast: true
needs: setup
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Run benchmarks
run: go test -run=- -benchmem -bench . github.com/wafer-bw/whatsmyip/...

0 comments on commit 1936c7a

Please sign in to comment.