Merge pull request #30 from robgonnella/upgrade-go-lanscan #156
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: Go test | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '!v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y make libpcap-dev | |
- name: Build | |
run: make | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55.2 | |
skip-pkg-cache: true | |
- name: Test | |
run: make test |