mdns: restrict A/AAAA records to addresses reachable from querying interface #41
Workflow file for this run
This file contains hidden or 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: linting | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| name: All | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: "1.16.x" | |
| - name: Install staticcheck | |
| run: go install honnef.co/go/tools/cmd/staticcheck@434f5f3816b358fe468fa83dcba62d794e7fe04b # 2021.1 (v0.2.0) | |
| - name: Check that go.mod is tidy | |
| uses: protocol/[email protected] | |
| with: | |
| run: | | |
| go mod tidy | |
| if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then | |
| echo "go.sum was added by go mod tidy" | |
| exit 1 | |
| fi | |
| git diff --exit-code -- go.sum go.mod | |
| - name: gofmt | |
| run: | | |
| out=$(gofmt -s -l .) | |
| if [[ -n "$out" ]]; then | |
| echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}' | |
| exit 1 | |
| fi | |
| - name: go vet | |
| uses: protocol/[email protected] | |
| with: | |
| run: go vet ./... | |
| - name: staticcheck | |
| uses: protocol/[email protected] | |
| with: | |
| run: | | |
| set -o pipefail | |
| staticcheck ./... | sed -e 's@\(.*\)\.go@./\1.go@g' |