-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add bench-go github actions * Update README.md
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: bench go | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
branches: | ||
- main | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dev: | ||
strategy: | ||
matrix: | ||
os-version: ['ubuntu-22.04' ] | ||
go-version: [ '1.20', '1.21' ] | ||
runs-on: ${{ matrix.os-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Show Go version | ||
run: | | ||
go version | ||
sudo go version | ||
- name: Set up Go for root | ||
if: runner.os != 'macOS' | ||
run: | | ||
which go | ||
sudo which go | ||
sudo ln -sf `which go` `sudo which go` || true | ||
- name: Show Go version | ||
run: | | ||
go version | ||
sudo go version | ||
- name: Bench | ||
run: | | ||
cd dnsutils/ | ||
go test -run=^$ -bench=. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters