Skip to content

Add pre-commit and fix issues #155

Add pre-commit and fix issues

Add pre-commit and fix issues #155

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- 'LICENSE'
types:
- opened
- reopened
- synchronize
defaults:
run:
shell: bash
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Output Variables
id: vars
run: echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)"
- name: Setup Golang Environment
uses: actions/setup-go@v4
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Lint Code
uses: golangci/golangci-lint-action@v3