Skip to content

*: Refactor codebase with linters/formatters and upstream patterns #8

*: Refactor codebase with linters/formatters and upstream patterns

*: Refactor codebase with linters/formatters and upstream patterns #8

Workflow file for this run

name: lint
on:
push:
branches:
- main
tags:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: Formatters + Linters (Static Analysis) for Go
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Linting, Formatting & vetting
run: make lint