chore(ci): add golangci-linter
Some checks failed
Markdown linter / markdown-lint (push) Successful in 12s
Golang Tests / unittest (push) Failing after 20s
golangci-lint / lint (stable, ubuntu-latest) (push) Failing after 1m10s

This commit is contained in:
Markus Pesch 2025-05-13 20:21:51 +02:00
parent fe9a5278f7
commit b316124df4
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 45 additions and 19 deletions

View File

@ -1,21 +1,21 @@
# name: Golang Tests name: Golang Tests
# on: on:
# pull_request: pull_request:
# types: [ "opened", "reopened", "synchronize" ] types: [ "opened", "reopened", "synchronize" ]
# push: push:
# branches: [ '**' ] branches: [ '**' ]
# tags-ignore: [ '**' ] tags-ignore: [ '**' ]
# jobs: jobs:
# unittest: unittest:
# runs-on: runs-on:
# - ubuntu-latest - ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v4.2.2 - uses: actions/checkout@v4.2.2
# - uses: actions/setup-go@v5.5.0 - uses: actions/setup-go@v5.5.0
# with: with:
# go-version: stable go-version: stable
# - env: - env:
# GOPROXY: ${{ vars.GOPROXY }} GOPROXY: ${{ vars.GOPROXY }}
# run: make test/unit run: make test/unit

View File

@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
branches:
- master
pull_request:
types: [ "opened", "reopened", "synchronize" ]
permissions:
contents: read
jobs:
golangci:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest]
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v8