Skip to content

Adding builds to Makefile #112

Adding builds to Makefile

Adding builds to Makefile #112

Workflow file for this run

name: Lint RaspberryPi
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
lint:
if: github.event.pull_request.draft != true
name: Run golangci-lint via Makefile
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libpcap0.8-dev
version: 1.0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23.4
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
- name: Run golangci-lint:rsp
run: |
cd raspberry-pi
go mod tidy
make lint