Skip to content

Add golangci-lint and fix problems (#75) #6

Add golangci-lint and fix problems (#75)

Add golangci-lint and fix problems (#75) #6

Workflow file for this run

name: Go
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unit-tests:
runs-on: ubuntu-24.04
strategy:
matrix:
go-version: [
"1.21",
"1.22",
stable
]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run Unit Tests
run: go test -race -v ./...
draft-release:
runs-on: ubuntu-24.04
if: github.event_name != 'pull_request'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Create/Update Draft Release
uses: lucacome/[email protected]
with:
minor-label: "enhancement"
major-label: "change"
collapse-after: 20