Skip to content

Fix rpm build

Fix rpm build #12

Workflow file for this run

name: "Build & Test"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
actions: read
contents: read
jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Set up Go
id: install_go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Build
id: build
run: |
go build -v ./...
- name: Perform Unit Tests
id: unit_tests
run: |
go test -v ./...
- name: Setup Functional Tests
id: setup_functional_tests
run: |
cd cmd/proxytest
go build
cd ../../
mv cmd/proxytest/proxytest .
./proxytest --setup-pki
cd cmd/dnsproxy
go build
cd ../../
mv cmd/dnsproxy/dnsproxy .
- name: Perform Functional Tests
id: functional_tests
run: |
nohup ./dnsproxy server -c dnsproxy_test.conf &
sleep 1
./proxytest https://localhost:8443/dns-query a example.com. | grep '{93, 184, 215, 14}'
./proxytest localhost:8853 aaaa example.com. | grep '{38, 6, 40, 0, 2, 31, 203, 7, 104, 32, 128, 218, 175, 107, 139, 44}'