lint after Go 1.22 #127
Workflow file for this run
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: lint_dnswatch | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
- name: "Install deps" | |
run: sudo apt-get update; sudo apt-get install -y libpcap0.8 libpcap0.8-dev make clang gcc-multilib | |
- name: "Install libbpf-1" | |
run: sudo bash .github/scripts/install_libbpf1.sh | |
- name: "Build all" | |
run: cd dnswatch; make | |
- name: "Run linter" | |
run: cd dnswatch; make lint |