[Issue and fix suggestion] Dnsmasq forcefully disconnects when sending more then a single txt-query within the same request #28
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
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Ensure all files were formatted as per gofmt | |
run: | | |
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] | |
- name: install binaries | |
run: go install github.com/google/dnsmasq_exporter | |
- name: build tests | |
run: go test -c ./collector | |
- name: docker build | |
run: docker build --pull --no-cache --rm -t=dns -f travis/Dockerfile . | |
- name: run tests in docker | |
run: docker run -v $PWD:/usr/src:ro -e TESTDATA_FILE_PATH=/usr/src/collector/testdata/dnsmasq.leases dns /bin/sh -c './collector.test -test.v' |