Skip to content

update golang to 1.22.4, update alpine to 3.20.0, update bullseye ima… #140

update golang to 1.22.4, update alpine to 3.20.0, update bullseye ima…

update golang to 1.22.4, update alpine to 3.20.0, update bullseye ima… #140

Workflow file for this run

name: Unit tests
on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
jobs:
unit-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.6
- name: Install package dependencies
run: |
sudo apt-get update
sudo apt-get install -y make protobuf-compiler libsystemd-dev curl
- name: Install Go dependencies
run: |
go install github.com/golang/protobuf/[email protected]
go install github.com/gogo/protobuf/[email protected]
go install github.com/fatih/[email protected]
- name: Test
run: make BUILD_IN_CONTAINER=false test
- name: Install golangci-lint
run: |
cd /
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
| sudo sh -s v1.55.2
- name: Run Linter
run: make lint