Skip to content

Add golangci-lint and fix problems #2

Add golangci-lint and fix problems

Add golangci-lint and fix problems #2

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
concurrency:
group: ${{ github.ref_name }}-lint
cancel-in-progress: true
jobs:
lint:
name: Go Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: stable
- name: Lint Go
uses: golangci/golangci-lint-action@v6
actionlint:
name: Actionlint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Lint Actions
uses: reviewdog/action-actionlint@v1
with:
actionlint_flags: -shellcheck ""