Skip to content

Bump golang from 1.21.1-alpine3.17 to 1.21.2-alpine3.17 #757

Bump golang from 1.21.1-alpine3.17 to 1.21.2-alpine3.17

Bump golang from 1.21.1-alpine3.17 to 1.21.2-alpine3.17 #757

name: tests powerdns
on:
push:
paths-ignore:
- 'docs/**'
- 'README.md'
branches:
- main
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
branches:
- main
jobs:
dnsdist:
runs-on: ubuntu-22.04
env:
COLLECTOR_USER: pdns
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21']
dnsdist: [ '17', '18', '19' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/setup-python@v4
- name: build binary
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-dnscollector *.go
- name: Deploy dnsdist docker image
run: |
sudo docker run -d --network="host" --name=dnsdist --volume=$PWD/testsdata/powerdns/dnsdist_protobuf.conf:/etc/dnsdist/conf.d/dnsdist.conf:z -v /tmp/:/tmp/ powerdns/dnsdist-${{ matrix.dnsdist }}
until (dig -p 5553 www.github.com @127.0.0.1 | grep NOERROR); do sleep 5.0; done
- name: Test dns query
run: |
sudo python3 -m pip install dnspython
sudo -E python3 -m unittest tests.dnsquery_powerdns -v
recursor:
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21' ]
recursor: [ '47', '48', '49' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/setup-python@v4
- name: build binary
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-dnscollector *.go
- name: Deploy recursor docker image
run: |
sudo docker run -d --network="host" --name=recursor --volume=$PWD/testsdata/powerdns/pdns_recursor.lua:/etc/powerdns/recursor.lua:z --volume=$PWD/testsdata/powerdns/pdns_recursor.conf:/etc/powerdns/recursor.conf:z powerdns/pdns-recursor-${{ matrix.recursor }}
until (dig -p 5553 www.github.com @127.0.0.1 | grep NOERROR); do sleep 5.0; done
- name: Test send query
run: |
sudo python3 -m pip install dnspython
sudo -E python3 -m unittest tests.dnsquery_powerdns -v