Skip to content

Commit

Permalink
add bench-go github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Mar 5, 2024
1 parent 9bff9a7 commit 055d2b0
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/bench-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: tests 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=.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ The [`_examples`](./docs/_examples) folder from documentation contains a number
The [`_integration`](./docs/_integration) folder contains DNS-collector `configuration` files and `docker compose` examples for popular tools:

- [Elasticsearch](./docs/_integration/elasticsearch/README.md)
- [Kafka](./docs/_integration/kafka/README.md)

## Performance

Expand Down

0 comments on commit 055d2b0

Please sign in to comment.