Skip to content

Merge pull request #21 from Cybersecurity-and-Enterprise-Security/cho… #3

Merge pull request #21 from Cybersecurity-and-Enterprise-Security/cho…

Merge pull request #21 from Cybersecurity-and-Enterprise-Security/cho… #3

name: Compile and Lint
on:
push:
branches: [ "main" ]
# Also run on semver tags to compile and lint them.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
compile-and-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install dependencies
run: sudo apt install -y libpcap-dev make
- name: Install linter
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
- name: Compile
run: make build
- name: Lint
run: make lint